Re: Question: Gui Looks Different





Ken Browning wrote on 15.08.2007 16:38:
I am a fairly new java developer, so the answer to my question may be
obvious to the veterans, but it is not obvious to me, so here goes. I
have an application that has several progress bars and other guid
widgets in it. On the system (a desktop with CRT) where the code was
developed the GUI looks normal. If I run the same code on my laptop,
the app still runs but the GUI is not drawn correctly. Is there a fix
(easy or otherwise) for this? Many thanks in advance,
Ken Browning

I assume you are using a Windows computer. In that case problems with painting in Java are most of the time caused by problems in the graphics driver. Try running your application with -Dsun.java2d.noddraw=true to turn off the usage of DirectDraw in Java. That might fix your problems. If it doesn't try to upgrade your graphics driver on the laptop.

Thomas
.