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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: docs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      generic
    • OS:
      generic

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: