Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > help for JTabbedPane

Reply
Thread Tools

help for JTabbedPane

 
 
shoa
Guest
Posts: n/a
 
      07-27-2003
Hello all
I have a JTabbedPanel. By defaut, when a tab is selected, the tab color is
changed to lightGray. I tried to change that color to another color (pink
for example), it does not work.

I have the code for the Tab that is selected:

tablePanel.setForegroundAt(selectIndex, Color.red);
tablePanel.setBackgroundAt(selectIndex, Color.pink);

with this code, only Foreground is changed to red, not the Background.

Could you please help
Thank you


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed @ JScrollpane on JTabbedpane vikas talwar Java 0 05-01-2006 04:33 PM
Need help about JTabbedPane gtcc2009@yahoo.com Java 1 01-23-2006 02:10 PM
JTabbedPane can right/middle align ? Java 0 10-09-2003 09:49 AM
Is that a bug for JTabbedPane? James Java 1 08-02-2003 01:27 PM
need help with JTabbedPane shoa Java 0 07-26-2003 01:22 PM



Advertisments