Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Java Swing Problem in XP

Reply
Thread Tools

Java Swing Problem in XP

 
 
Jerry
Guest
Posts: n/a
 
      10-05-2005
I have developed a Java Swing GUI application. Under Windows 2000,
everything including button, text box etc is fine. But under windows XP
default evironment, some text box will dissappear and some button will
be lowered to the side of the application. These scenario happened to
some text box or some buttons, not to all of them. Some text box are
still shown.

When I change the XP performatnce setting under "control panel ->
System -> Advanced -> Performance" to "Adjust to best performance" and
this environment is similar to Win 2000. Then, those disappeared text
boxes appear and those buttons return above the side.

Anyone knows how to fix such problem? Or should I just update the user
guide to ask user adjust performance settings?

Thanks for your help!

 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      10-06-2005
Jerry wrote:

> I have developed a Java Swing GUI application.


Did you use layouts?

Was there a lot of use of 'setSize' in the code?

>...Under Windows 2000,
> everything including button, text box etc is fine. But under windows XP
> default evironment, some text box will dissappear and some button will
> be lowered to the side of the application. These scenario happened to
> some text box or some buttons, not to all of them. Some text box are
> still shown.

...

> Anyone knows how to fix such problem?


<tongue in cheek>
Change line, 234. That '-' should be a '+'
</tongue in cheek>

Can you provide an SSCCE that demonstrates the problem?
<http://www.physci.org/codes/sscce.jsp>
 
Reply With Quote
 
 
 
 
James Cunningham
Guest
Posts: n/a
 
      10-06-2005
On Wed, 05 Oct 2005 18:22:43 -0400, Jerry <> wrote:

> When I change the XP performatnce setting under "control panel ->
> System -> Advanced -> Performance" to "Adjust to best performance" and
> this environment is similar to Win 2000. Then, those disappeared text
> boxes appear and those buttons return above the side.
>
> Anyone knows how to fix such problem? Or should I just update the user
> guide to ask user adjust performance settings?


Is it the fact that your program is using getSystemLookAndFeelClassName?
You could try to set the look and feel to
"com.sun.java.swing.plaf.windows.WindowsClassicLoo kAndFeel", which is the
Windows 2000 look.

best,
james
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      10-07-2005
On 5 Oct 2005 15:22:43 -0700, "Jerry" <> wrote
or quoted :

>When I change the XP performatnce setting under "control panel ->
>System -> Advanced -> Performance" to "Adjust to best performance" and
>this environment is similar to Win 2000. Then, those disappeared text
>boxes appear and those buttons return above the side.


Is this performance adjustment for the video driver? If so it implies
you have a video driver bug. Check with the manufacturer for an
update.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
 
Reply With Quote
 
Jerry
Guest
Posts: n/a
 
      10-10-2005
Is com.sun.java.swing.plaf.windows.WindowsClassicLook AndFeel availble
since JDK 1.5? I am compiling the code using JDK 1.4.2 and it failed to
recognize com.sun.java.swing.plaf.windows.WindowsClassicLook AndFeel.
Using JDK 1.5, seems O.K..

Thanks,

Haoming

James Cunningham wrote:
> On Wed, 05 Oct 2005 18:22:43 -0400, Jerry <> wrote:
>
> > When I change the XP performatnce setting under "control panel ->
> > System -> Advanced -> Performance" to "Adjust to best performance" and
> > this environment is similar to Win 2000. Then, those disappeared text
> > boxes appear and those buttons return above the side.
> >
> > Anyone knows how to fix such problem? Or should I just update the user
> > guide to ask user adjust performance settings?

>
> Is it the fact that your program is using getSystemLookAndFeelClassName?
> You could try to set the look and feel to
> "com.sun.java.swing.plaf.windows.WindowsClassicLoo kAndFeel", which is the
> Windows 2000 look.
>
> best,
> james


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Swing is dead! Long live Swing. Knute Johnson Java 32 02-29-2012 05:10 PM
Why not using javax.swing.event with swing? S.T Java 2 05-25-2007 12:10 AM
javax.swing.Popup, javax.swing.PopupFactory lizard Java 0 01-30-2006 09:34 PM
Swing Model Classes Updating Swing Components on a Thread Other Than AWT mkrause Java 0 05-06-2005 04:32 PM
Java 1.2 Swing vs. Java 1.5 Swing Big Daddy Java 2 04-16-2005 01:14 PM



Advertisments