Article View: borland.public.jbuilder.java.swing
Article #8699Re: SystemColor on WinNT and Solaris
From: John P. McGrath
Date: Fri, 21 Jul 2000 00:00
Date: Fri, 21 Jul 2000 00:00
27 lines
1253 bytes
1253 bytes
On Fri, 21 Jul 2000 09:11:49 +0200, Sweder Schellens wrote:
> I have written a subclass from javax.swing.JPanel.
> It has a title bar at the top, just like the
> application title bar, except that there are no
> buttons on it.
>
> On WinNT, the color is blue. On Solaris also. How
> can I obtain the actual color of the application
> title bar?
When the frame is active:
SystemColor.activeCaption Title bar
SystemColor.activeCaptionText Title bar text
SystemColor.activeCaptionBorder Title bar border
When the frame is inactive:
SystemColor.inactiveCaption Title bar
SystemColor.inactiveCaptionText Title bar text
SystemColor.inactiveCaptionBorder Title bar border
--
Regards,
John McGrath
Technical Details
Message-ID:
<MPG.13e1d6efffc35870989a58@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8l8sl9$8q91@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/21 Message-ID: <MPG.13e1d6efffc35870989a58@forums.borland.com> X-Deja-AN: 649006073 References: <8l8sl9$8q91@bornews.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing