🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

SV: L&F primary colors

#10143
From: Johan Forsberg
Date: Thu, 11 Nov 1999 00:00
25 lines
1704 bytes
Ronen <ronenm@netvision.net.il> skrev i
diskussionsgruppsmeddelandet:80cntt$k3a6@forums.borland.com...
> Your solution seem to be what I looked for, but its still doesn't work for
> me
> I tried exactly what you have suggested except that I'm doing an
application
> and not an applet.
> I still have the gray and purple colors of the default Metal Theme.
> I extended the DefaultMetalTheme instead of MetalTheme class (because its
> abstract and some methods need to be implemented)
> Any other suggestions or clarifications for this solution?

Hmmm.... How did you manage to extend DefaultMetalTheme??
All the colors/fonts are declared 'private final'.

That was the whole reason I extended MetalTheme instead... I just made a
copy of DefaultMetalTheme,
renamed it MyMetalTheme and changed the colors to 'public' so I could change
them dynamically.
It works great over here, as long as you remember to call
UIManager.setLookAndFeel(UIManager.getLookAndFeel())
and then
updateComponentTreeUI()
for every frame in the program whenever you make changes in the theme.
Technical Details
Message-ID: <80e1o2$scg9@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8098vf$j5511@forums.borland.com> <80bdhh$6sl5@forums.borland.com> <80cntt$k3a6@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,8535edc2c8bfaefe
X-Google-Attributes: gid111d45,public
From: "Johan Forsberg" <jfo@SPAM_SPAM_EGGS_SPAMstmf.se>
Subject: SV: L&F primary colors
Date: 1999/11/11
Message-ID: <80e1o2$scg9@forums.borland.com>
X-Deja-AN: 547263075
References: <8098vf$j5511@forums.borland.com> <80bdhh$6sl5@forums.borland.com> <80cntt$k3a6@forums.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing