help for JTabbedPane

Discussion in 'Java' started by shoa, Jul 27, 2003.

  1. shoa

    shoa Guest

    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
    shoa, Jul 27, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. shoa
    Replies:
    0
    Views:
    417
  2. James
    Replies:
    1
    Views:
    721
    Pedro
    Aug 2, 2003
  3. Guest
    Replies:
    0
    Views:
    820
    Guest
    Oct 9, 2003
  4. Replies:
    1
    Views:
    648
  5. vikas talwar
    Replies:
    0
    Views:
    1,483
    vikas talwar
    May 1, 2006
Loading...

Share This Page