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

AWT Checkbox and CheckboxMenuItem's setState() will not trigger an ItemEvent

XMLWordPrintable

    • beta2
    • generic
    • generic

      The method "public void setState(boolean state)" of Checkbox and CheckboxMenuItem
      should specifically state that this method should be primarily used to intialize
      the state of the checkbox. Furthermore, by programmatically setting the state
      of the checkbox, it will not trigger an ItemEvent. There should be an emphasis
      on the only way to trigger an ItemEvent is by user interaction. Many users were
      under the impression that by setting the state of the checkbox it'll trigger
      and ItemEvent.

      Please also see these bug #4318851, #4032466, #4034837, and #4067113

            sharonz Sharon Zakhour (Inactive)
            rphamsunw Roger Pham (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: