JDK-4783068 : Components with HTML text should gray out the text when disabled
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.3.0
  • Priority: P5
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: generic
  • Submitted: 2002-11-22
  • Updated: 2010-07-09
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
7 b55Fixed
Related Reports
Relates :  
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).

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.