• Post Reply Bookmark Topic Watch Topic
  • New Topic

Windows 7 not paint correctly Swing controls

 
Janfry Nice
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody.

My swing application runs in Windows XP with JDK 1.4.

When installed on Windows 7, the Swing controls have no visible borders.
With JDK 1.6 the controls are very similar to Windows XP (now the color
border appears) but the colors (combobox, background cells of JTable, ...)
are BLACK instead of BLUE which is how it appears in XP.

The L&F I use is:
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

Any ideas why appears in BLACK?

Thanks in advance.

Janfry
 
Darryl Burke
Bartender
Posts: 5155
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm on a WinXP machine right now, so I can't check out Win7/SystemLookAndFeel till I get home, but you could try updating your graphics driver(s). Also check whether any custom system properties / theme has been set.

edit No, on Win7 I get a rather bright blue as the selection background and the borders are normal.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!