• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Windows 7 not paint correctly Swing controls

 
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
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!