File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to get system Watch "How to get system New topic
Author

How to get system's window colors?

Matt Wilcko
Ranch Hand

Joined: Sep 23, 2003
Posts: 65
Hi,
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to get system's window colors?