Whiteboard display issue

N

Navodit

I have a whiteboard application in which the buttons are not being displayed
properly. The image icons for the buttons can not be seen though the
whiteboard application works fine otherwise. Can anyone suggest why this
could be taking place ? I have used JDK 1.3 to compile the code which showed
no warnings whatsoever.. Any hints wd be appreciated. thanks...

Navodit
 
A

Andrew T.

Navodit said:
..The image icons for the buttons can not be seen though the
whiteboard application works fine otherwise. Can anyone suggest why this
could be taking place ?

1 The images are not being found.
2 The images are not JPG, GIF or PNG format.
3 The images are corrupt.
I have used JDK 1.3 to compile the code which showed
no warnings whatsoever.. Any hints wd be appreciated.

I suspect it's 1, but with no code (description of paths etc.)
whatsoever..

Andrew T.
 
N

Navodit

If images were not being found, wouldnt the Java console throw up some kind
of error ? I thought that this wd be the case and since the Java console did
not show any exceptions or errors I presumed that the images were being
found correctly. Am I wrong in this assumption ?
 
A

Andrew T.

Navodit said:
If images were not being found, wouldnt the Java console throw up some kind
of error ?

It depends on your code. Some ways of loading images
throw exceptions if the image is not found, the common
ones don't - they simply fail.

BTW - please trim earlier conversation that is unnecessary
and reply below what you are replying to (otherwise threads
can be quite confusing).

Andrew T.
 
N

Navodit

It depends on your code. Some ways of loading images
throw exceptions if the image is not found, the common
ones don't - they simply fail.
Andrew T.

I have not written the code but I believe that the code throws exceptions if
images are not loaded. The images are in the supported formats and do not
seem to be corrupt. Are there any other possibilities due to which the icons
may not be displayed ?
 
A

Andrew T.

Navodit said:
....
I have not written the code but I believe that the code throws exceptions if
images are not loaded.

'believe' the code throws exceptions? Do you have
access to the code?

And more importantly, can you post a short example here
that fails like your application.

Andrew T.
 
N

Navodit

Navodit said:
'believe' the code throws exceptions? Do you have
access to the code?

You were correct. The code does not give an exception even when I removed
the folder from which the images were supposed to be taken... I had the jar
file, which I decompiled (using jad) and now have access to the code.
However the code does throw an exception when I remove a .properties file
giving information about tip text, command text etc. So I had presumed that
it wd throw an exception if the image folder were missing which was not the
case. Any suggestions what can be done now ? Thanks...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top