Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Knute Johnson Newsgroups: comp.lang.java.gui Subject: Re: Anybody know how to set the color of the text in a disabled JMenuItem? Date: Sat, 20 Aug 2011 14:28:10 -0700 Organization: A noiseless patient Spider Lines: 10 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 20 Aug 2011 21:28:10 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="mz/LDSJwiWnk3Jnnqg7x+Q"; logging-data="24830"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18hvqT2X7lz1+U5bPUEdCjW" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20110812 Thunderbird/6.0 In-Reply-To: Cancel-Lock: sha1:Bxe4iZxCh6I+yhKALXLxRPL+2jg= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:4656 On 8/20/2011 12:45 AM, John B. Matthews wrote: > Cf. the JTextComponent, which has setDisabledTextColor(): When I saw that I thought there you go, that's an easy fix but JMenuItem.getComponent() returns a JMenuItem not a JTextComponent. -- Knute Johnson