🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8708

Re: SystemColor on WinNT and Solaris

#8708
From: Paul Franks TeamB
Date: Sun, 23 Jul 2000 00:00
23 lines
1493 bytes
In article <8l9h6m$dbo2@bornews.borland.com>, sweder.schellens@qa-
systems.com says...
> 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?
> 
> 

Not strictly true.  I think you'll find on a Windows system the color 
assignments for named color schemes are detected at run-time, NOT at 
compile time.  If you compile and run on a different box (bugs 
permitting, even a different JVM) the Local color assignments will be 
used.

I'm not certain, but I don't think Java code can get to the actual color 
associations set at OS level under Windows.  I'd expect the JVM to handle 
this internally.  It's a pain to get these parameters from WinAPI in a 
pure Windows program, WinAPI functions are even less accessible to Java 
code - and native code methods it would be incompatible with other 
platform JVMs. 

-- 
pf
Technical Details
Message-ID: <MPG.13e5746e3942f9c49896a3@207.105.83.65>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <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: Paul Franks [TeamB] <jplf-b@dial.pipex.com>
Subject: Re: SystemColor on WinNT and Solaris
Date: 2000/07/23
Message-ID: <MPG.13e5746e3942f9c49896a3@207.105.83.65>
X-Deja-AN: 649899056
References: <8l8sl9$8q91@bornews.borland.com> <MPG.13e1d6efffc35870989a58@forums.borland.com> <8l9h6m$dbo2@bornews.borland.com>
X-Trace: 23 Jul 2000 15:02:26 -0800, 62.188.151.216
Newsgroups: borland.public.jbuilder.java.swing