Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #4657
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: Anybody know how to set the color of the text in a disabled JMenuItem? |
| Date | 2011-08-20 21:17 -0400 |
| Organization | The Wasteland |
| Message-ID | <nospam-B61DA7.21171520082011@news.aioe.org> (permalink) |
| References | (3 earlier) <j2kfm1$tai$1@dont-email.me> <nospam-C33427.07014719082011@news.aioe.org> <j2m3kp$1c3$1@dont-email.me> <nospam-E55C9E.03452820082011@news.aioe.org> <j2p87c$khu$1@dont-email.me> |
In article <j2p87c$khu$1@dont-email.me>, Knute Johnson <september@knutejohnson.com> wrote: > Does that work when you run it on your linux box? Because on my > windows xp it shows all of the menu items greyed out. JMenuItem > doesn't keep the disabled foreground color in the its field. The > colors are extracted from the UIManager when the component is > repainted so if you reset the value of MenuItem.disabledForeground > anywhere it will paint all of them with that color. I see the result you describe on Ubuntu; my suggested workaround fails. Altering the UI delegate is effective, but you'll want to check the result on your target platforms: a dim red may show poor contrast on a L&F's default background. -- 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
Anybody know how to set the color of the text in a disabled JMenuItem? Knute Johnson <september@knutejohnson.com> - 2011-08-18 11:39 -0700
Re: Anybody know how to set the color of the text in a disabled JMenuItem? markspace <-@.> - 2011-08-18 14:38 -0700
Re: Anybody know how to set the color of the text in a disabled JMenuItem? Knute Johnson <september@knutejohnson.com> - 2011-08-18 16:06 -0700
Re: Anybody know how to set the color of the text in a disabled JMenuItem? markspace <-@.> - 2011-08-18 18:52 -0700
Re: Anybody know how to set the color of the text in a disabled JMenuItem? "John B. Matthews" <nospam@nospam.invalid> - 2011-08-19 07:01 -0400
Re: Anybody know how to set the color of the text in a disabled JMenuItem? Knute Johnson <september@knutejohnson.com> - 2011-08-19 09:39 -0700
Re: Anybody know how to set the color of the text in a disabled JMenuItem? markspace <-@.> - 2011-08-19 10:49 -0700
Re: Anybody know how to set the color of the text in a disabled JMenuItem? "John B. Matthews" <nospam@nospam.invalid> - 2011-08-20 03:45 -0400
Re: Anybody know how to set the color of the text in a disabled JMenuItem? Knute Johnson <september@knutejohnson.com> - 2011-08-20 14:16 -0700
Re: Anybody know how to set the color of the text in a disabled JMenuItem? "John B. Matthews" <nospam@nospam.invalid> - 2011-08-20 21:17 -0400
Re: Anybody know how to set the color of the text in a disabled JMenuItem? Knute Johnson <september@knutejohnson.com> - 2011-08-20 14:28 -0700
Re: Anybody know how to set the color of the text in a disabled JMenuItem? Tom <tom400f@gmail.com> - 2011-08-19 17:16 +0000
Re: Anybody know how to set the color of the text in a disabled JMenuItem? Knute Johnson <september@knutejohnson.com> - 2011-08-19 11:03 -0700
csiph-web