🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to set the color of the selectecd tab of a jtabbedpane

#8028
From: David Jefferson
Date: Thu, 09 Nov 2000 00:00
19 lines
1152 bytes
You could try setForegroundAt(int index, Color foreground) in JTabbedPane.

It worked for me, add a listener to the tabbed pane and change colours every
time a new tab is selected.

Dave

"Michael Rachow" <mrachow@BeraCom.de> wrote in message
news:3a0a69c3_2@dnews...
> I think one can't influence the disabled color of a tab.
> For a tab use
> jTabbedPane1.setForegroundAt(2, Color.red);
> for setting the THIRD tab to red.
> (Or getting the actual foreground color).
> The tabs had to been added to the tabbed pane already.
> JTabbedPage??
> Michael
>
>
Technical Details
Message-ID: <3a0ad7ce$1_1@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3a0974cf$1_1@dnews> <3a0a69c3_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,740d8856dcb00388
X-Google-Attributes: gid111d45,public
From: "David Jefferson" <david.jefferson@kbcfp.com>
Subject: Re: How to set the color of the selectecd tab of a jtabbedpane
Date: 2000/11/09
Message-ID: <3a0ad7ce$1_1@dnews>
X-Deja-AN: 691681646
References: <3a0974cf$1_1@dnews> <3a0a69c3_2@dnews>
X-Trace: 9 Nov 2000 08:58:54 -0800, 194.203.209.252
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700