aspose file tools
The moose likes Swing / AWT / SWT and the fly likes How to get system's window colors? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to get system Watch "How to get system New topic

How to get system's window colors?

Matt Wilcko
Ranch Hand

Joined: Sep 23, 2003
Posts: 65
Is there a way to detect the color user's system is using for windows? My swing app is gray, but my windows xp windows are tan. I want to be able to match the color selection on any system.
Ken Krebs
Ranch Hand

Joined: Nov 27, 2002
Posts: 451
Take a look at java.awt.SystemColor.

kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
I agree. Here's the link:
subject: How to get system's window colors?