🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how to change the background color for the whole app

#10380
From: John
Date: Tue, 12 Oct 1999 00:00
21 lines
1450 bytes
I have tried playing around with this as well and the only thing that I have
found is to put a static Color object in one class and setBackground() of
everything you want to change.  There probably is a better way and there should
be, but I haven't found one.  If there is something I would be interested.

Lois Neo wrote:

> Hi,
>
> I've built my application and now I'll like to change the background color
> for all frames and dialogs, buttons, etc used in my app.
> Does anyone of a easy way of setting the background color for all these or
> do I really have to manually set the background colors for all of the
> panels, buttons, etc?
>
> I've tried to look at the apis for LookAndFeel for changing the colours and
> fonts of the components but can't figure out how to use it. can someone give
> some samples?
>
> Thanks for any help given.
> Lois
Technical Details
Message-ID: <3804012F.775175CA@clemson.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7tka3s$6o18@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,e7588067b13579a9
X-Google-Attributes: gid111d45,public
From: John <jahayes@clemson.edu>
Subject: Re: how to change the background color for the whole app
Date: 1999/10/12
Message-ID: <3804012F.775175CA@clemson.edu>
X-Deja-AN: 536094411
Content-Transfer-Encoding: 7bit
References: <7tka3s$6o18@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing