United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4783068 : Components with HTML text should gray out the text when disabled

Details
Type:
Enhancement
Submit Date:
2002-11-22
Status:
Closed
Updated Date:
2010-07-09
Project Name:
JDK
Resolved Date:
2011-03-07
Component:
client-libs
OS:
windows_xp
Sub-Component:
javax.swing
CPU:
generic
Priority:
P5
Resolution:
Fixed
Affected Versions:
1.3.0
Fixed Versions:

Related Reports
Relates:

Sub Tasks

Description
Up through 1.4, there's no easy way to gray out the text of a component
(say, a button) that uses HTML formatting and is disabled.  HTML formatting
would be easier to use if there were such a mechanism.  The engineer says:

  We'd probably add a property to allow users to turn it on or off
  (or to customize the disabled appearance themselves).


                                    

Comments
EVALUATION

Many views do not check whether their containers are disabled. And GlyphView does a check only if its host is a JTextComponent.

We could add checks and paint with "textInactiveText" color if the host is disabled.
                                     
2009-03-13



Hardware and Software, Engineered to Work Together