Results 1 to 3 of 3
  1. #1
    Onra is offline Member
    Join Date
    Nov 2009
    Posts
    41
    Rep Power
    0

    Default Setting BG color of JTabbedPane tab

    Hello,

    when I try to set the background color of a tab in a JTabbedPane through the setBackgroundAt method, it doesn't do anything. Can it be that the L&F prevents it from happening? Or do I need to call an additional method?

    Thanks for the help.

  2. #2
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Location
    Destiny Islands
    Posts
    692
    Rep Power
    4

    Default

    How are you using it? What's your current code?

  3. #3
    Onra is offline Member
    Join Date
    Nov 2009
    Posts
    41
    Rep Power
    0

    Default

    I am using Nimbus L&F. I simply call setBackgroundAt(index, Color.ORANGE);
    on my JTabbedPane object.

Similar Threads

  1. Using JtabbedPane
    By simmi in forum AWT / Swing
    Replies: 9
    Last Post: 03-24-2010, 12:24 PM
  2. [COLOR="Navy"]execute .bat file in mysql [/COLOR]
    By msankar.ravi in forum Networking
    Replies: 0
    Last Post: 02-24-2010, 04:27 AM
  3. Replies: 4
    Last Post: 03-26-2009, 09:42 PM
  4. setting background color of JFrame form with NetBeans 6.1
    By onefootswill in forum New To Java
    Replies: 4
    Last Post: 08-12-2008, 07:02 AM
  5. Help with JTabbedPane
    By lenny in forum SWT / JFace
    Replies: 1
    Last Post: 08-07-2007, 06:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •