🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JTabbedPane - selected tab color

#12080
From: Einar Kristinsson
Date: Mon, 22 Feb 1999 00:00
10 lines
836 bytes
I have a tabbed pane populated with (1..n) number of JPanels. 
I want each tab to have the same color as the corresponding component 
(JPanel) when selected. I have tried to use setBacakground(Color.xx),
but 
this only changes the color of the tab when it is NOT selected. 

Any ideas, please .... 


Einar,
Technical Details
Message-ID: <36D14E27.A59F7C07@decode.is>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,5b15756fce547de9,start
X-Google-Attributes: gid111d45,public
From: Einar Kristinsson <einar@decode.is>
Subject: JTabbedPane - selected tab color
Date: 1999/02/22
Message-ID: <36D14E27.A59F7C07@decode.is>
X-Deja-AN: 447046385
Content-Transfer-Encoding: 7bit
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