Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #4660
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: Setting JTabbedPane selected color |
| Date | 2011-08-22 14:12 -0400 |
| Organization | The Wasteland |
| Message-ID | <nospam-B82CB4.14120822082011@news.aioe.org> (permalink) |
| References | <2488a5a5-932a-4817-9dc0-ffa3f02ec462@p37g2000prp.googlegroups.com> |
In article <2488a5a5-932a-4817-9dc0-ffa3f02ec462@p37g2000prp.googlegroups.com>, Fred <fred.l.kleinschmidt@boeing.com> wrote: > 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) Can you use WRAP_TAB_LAYOUT for your tabLayoutPolicy? See also: <http://download.oracle.com/javase/tutorial/uiswing/examples/components/index.html#TabComponentsDemo> -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
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