Article View: borland.public.jbuilder.java.swing
Article #10301Re: how to change the background color for the whole app
From: Rich Wilkman
Date: Wed, 13 Oct 1999 00:00
Date: Wed, 13 Oct 1999 00:00
51 lines
2554 bytes
2554 bytes
Lois: Well, you could write your own Look&Feel (assuming that you are using JFC as your component base) and have the L&F do all the work of setting everything to the same background color. Beyond that, I can't think of an "easy" way to do this type of thing at runtime. You could write your own containers and enforce the setting of colors to the container color on the add() call. -Rich Lois Neo wrote: > > Well, that is also the only way that I can think of, but it's too hectic to > change one by one the background colors of ALL the components in my app. and > some components don't inherit the background color from the parent > container, so practically I've got to set the background color specifically > for them in addition to the parent container. > > I just wonder if there's a way to change the background color uniformly > throughout the whole app with just one or two statements. Can somebody who > knows share it with us? > > Thanks for any help given. > Lois Neo > > John <jahayes@clemson.edu> wrote in message > news:3804012F.775175CA@clemson.edu... > > 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. > > -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rich Wilkman Quality Assurance Manager Borland JBuilder Team If you see something that looks like an opinion up there, it's mine and mine alone. Mail sent to me from the newsgroups won't bounce but will be ignored. If I have time, I'll respond, but you have a better chance if you confine your posts to the newsgroups =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<3804F004.9221240F@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7tka3s$6o18@forums.borland.com> <3804012F.775175CA@clemson.edu> <7u2a5e$89k4@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: Rich Wilkman <rwilkman@inprise.com> Subject: Re: how to change the background color for the whole app Date: 1999/10/13 Message-ID: <3804F004.9221240F@inprise.com> X-Deja-AN: 536391507 Content-Transfer-Encoding: 7bit References: <7tka3s$6o18@forums.borland.com> <3804012F.775175CA@clemson.edu> <7u2a5e$89k4@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