Need help with JTabledPane

A

Arnaud Berger

Hi,

Sure, you can use :

jTabbedPane.setBackgroundAt(index, Color.RED) ;
for the background, or
jTabbedPane.setForegroundAt(index, Color.RED) ;
for the foreground (color of text)

where "index" is the int index of your tab (probably 2 in your case).

Regards,

Arnaud
 
S

shoa

Hello all

I have JTabledPane in my application. In it I have some tabs with titles
"Tab 1", "Tab 2" and "Tab 3". I want to have the color of the title "Tab 3"
is red (so it is easy to recognize). Is it possible?. Could you please
help..

I tried to use add a red label for the title's tab but it does not work.
Thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top