Article View: borland.public.jbuilder.java.swing
Article #8705Re: SystemColor on WinNT and Solaris
From: John P. McGrath
Date: Sat, 22 Jul 2000 00:00
Date: Sat, 22 Jul 2000 00:00
24 lines
1615 bytes
1615 bytes
On Fri, 21 Jul 2000 15:02:26 +0200, Sweder Schellens wrote: > This is exactly what I used. It looks like it depends > on what platform you compile. If one compiles on WinNT, > the color will be blue on all platforms the class is > run on. Is there a way to get the actual, run-time color > of the title bar? No, it does not depend on the platform you compile on, but on the platform that you are running on, or more accurately, the environment that you start the program in. The AWT ToolKit gets these values from the host system. For Windows, the information comes from the desktop configuration. For Unix, this comes from somewhere in the Motif library, but I am not sure where it gets it from. It may come from the window manager, or it may be hard coded, or maybe a little of each. So under Windows, if you change your color scheme while a Java program is running, the program will not hear about the changes. But if you restart your program, it will then get the colors for the new color scheme. -- Regards, John McGrath
Technical Details
Message-ID:
<MPG.13e2e334eb7d922c989a5b@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8l8sl9$8q91@bornews.borland.com> <MPG.13e1d6efffc35870989a58@forums.borland.com> <8l9h6m$dbo2@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,4dd32d05355ce4c3 X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: SystemColor on WinNT and Solaris Date: 2000/07/22 Message-ID: <MPG.13e2e334eb7d922c989a5b@forums.borland.com> X-Deja-AN: 649392034 References: <8l8sl9$8q91@bornews.borland.com> <MPG.13e1d6efffc35870989a58@forums.borland.com> <8l9h6m$dbo2@bornews.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing