• Post Reply Bookmark Topic Watch Topic
  • New Topic

Look & Feel vs XP  RSS feed

 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have not done much Swing so please excuse a Newbie question.

I'm running WSAD on Windows XP. When I run my app in the environment it has flat, square buttons. When I run from the desktop it has rounded 3D buttons. How can I get the latter look all the time?

I'm extending legacy code here. The window constructor has the line "UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());" which I expected to line things up. Should that work?

Finally, the original author put the buttons in a gridbag and set ipadx on GridBagConstraints to various values to make the buttons all the same width. His look good in square mode or 3D mode. Mine shrinks in 3D mode so it's not the right width. Does that make any sense?

TIA!
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm, later it occurred to me that WSAD is running JDK 1.3 something and I'm running 1.4 outside WSAD.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!