Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4783068

Components with HTML text should gray out the text when disabled

    Details

    • Subcomponent:
    • Resolved In Build:
      b55
    • CPU:
      generic
    • OS:
      windows_xp
    • Verification:
      Verified

      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).

        Issue Links

          Activity

          Hide
          peterz Peter Zhelezniakov (Inactive) added a comment -
          BT2: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.
          Show
          peterz Peter Zhelezniakov (Inactive) added a comment - BT2: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.

            People

            • Assignee:
              peterz Peter Zhelezniakov (Inactive)
              Reporter:
              kwalrathsunw Kathy Walrath (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: