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

AWT List and Choice's select() will not trigger an ItemEvent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • docs
    • beta2
    • generic
    • generic

      The methods "public void select(int pos)" and "public void select(String str)"
      of Choice, and the method "public void select(int index)" of List
      should specifically state that these methods should be primarily used to
      intially selecting the item of the component. By programmatically calling
      these methods 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 using these methods it'll trigger
      and ItemEvent.

      Please also see these bug #4324396, #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: