Article View: borland.public.jbuilder.java.swing
Article #8701Re: SystemColor on WinNT and Solaris
From: Sweder Schellens
Date: Fri, 21 Jul 2000 00:00
Date: Fri, 21 Jul 2000 00:00
39 lines
1916 bytes
1916 bytes
Dear John Mcgrath, 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? Kind regards, Sweder Schellens "John P. McGrath" <JPMcGrath@fast.net> wrote in message news:MPG.13e1d6efffc35870989a58@forums.borland.com... > 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:
<8l9h6m$dbo2@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8l8sl9$8q91@bornews.borland.com> <MPG.13e1d6efffc35870989a58@forums.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: "Sweder Schellens" <sweder.schellens@qa-systems.com> Subject: Re: SystemColor on WinNT and Solaris Date: 2000/07/21 Message-ID: <8l9h6m$dbo2@bornews.borland.com> X-Deja-AN: 649089198 References: <8l8sl9$8q91@bornews.borland.com> <MPG.13e1d6efffc35870989a58@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Organization: QA Systems Technologies B.V. X-MSMail-Priority: Normal Reply-To: "Sweder Schellens" <sweder.schellens@qa-systems.com> Newsgroups: borland.public.jbuilder.java.swing