Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #4659

Setting JTabbedPane selected color

From Fred <fred.l.kleinschmidt@boeing.com>
Newsgroups comp.lang.java.gui
Subject Setting JTabbedPane selected color
Date 2011-08-22 09:08 -0700
Organization http://groups.google.com
Message-ID <2488a5a5-932a-4817-9dc0-ffa3f02ec462@p37g2000prp.googlegroups.com> (permalink)

Show all headers | View raw


I want to set the color of the selected tab in a JTabbedPane. I use:
   UIManager.put( "TabbedPane.selected", color );

But this also sets the background of the navigation arrows (if there
are more tabs than can be displayed). How do I set only the selected
tab color without changing the button colors?  (Using Java1.6)

--
Fred K

Back to comp.lang.java.gui | Previous | NextNext in thread | Find similar


Thread

Setting JTabbedPane selected color Fred <fred.l.kleinschmidt@boeing.com> - 2011-08-22 09:08 -0700
  Re: Setting JTabbedPane selected color "John B. Matthews" <nospam@nospam.invalid> - 2011-08-22 14:12 -0400
    Re: Setting JTabbedPane selected color Fred <fred.l.kleinschmidt@boeing.com> - 2011-08-26 07:14 -0700
      Re: Setting JTabbedPane selected color "John B. Matthews" <nospam@nospam.invalid> - 2011-08-27 04:07 -0400
        Re: Setting JTabbedPane selected color Fred <fred.l.kleinschmidt@boeing.com> - 2011-08-29 07:39 -0700
          Re: Setting JTabbedPane selected color "John B. Matthews" <nospam@nospam.invalid> - 2011-08-29 12:12 -0400
            Re: Setting JTabbedPane selected color Knute Johnson <nospam@knutejohnson.com> - 2011-08-29 16:52 -0700

csiph-web