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

JLabel.setIcon() has no effect on default disabled icon of a JLabel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.0
    • 1.1.6, 1.2.0
    • client-libs
    • None
    • 1.2fcs
    • generic, x86
    • generic, windows_nt
    • Verified


      JLabel.setIcon() has no effect on the default disabled icon of a JLabel.

      When a JLabel with an icon is disabled, a grayed out version of the label's
      icon is displayed. If the icon of the label is then changed by invoking setIcon(), and the label is disabled again, a grayed out version of the
      icon that had been displayed when the label had first been disabled is displayed.

      setIcon() should cause the disabled icon of a JLabel to be changed to a
      grayed out version of the label's _new_ icon. If setIcon() is not expected
      to do this, this behavior should be clearly documented in the JLabel spec.

      The attached application displays a text-and-image JLabel. To recreate
      this scenario, disable and enable the label, use the combobox to change the label's icon, and then disable the label again.

            sswingtrsunw Swingtraq Swingtraq (Inactive)
            gaurisha Gauri Sharma (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: