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

MAWT: List's itemstatechanged event behaves diferently in Solaris and Windows

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_9

      Description

      The itemstatechanged event added to the "list" component behaves inconsistently across the windows and Solaris platform.

      java -version

      java version "1.4.2-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b06)
      Java HotSpot(TM) Client VM (build 1.4.2-beta-b06, mixed mode)


      SOLARIS
      --------
      Please run the attached program "ListAction.java" .A list appears,select an item from it, by pressing "ENTER" button.

      Action event and itemstatechanged event is generated.Again press the "ENTER" key but this time don't change or select a new item from the list.You could see the item state changed event getting generated along with action event, even though
      there is no change in the selected item of the list.


      Solaris Outout is follows:
      --------------------------
      ItemStateChanged event is triggered
      actionPerformed
      ItemStateChanged event is triggered
      actionPerformed
      ItemStateChanged event is triggered
      actionPerformed

      (all the time item sate changed event is generated)

      Windows
      -------

      Please run the attached program "ListAction.java" .A list appears,select an item from it, by pressing "ENTER" button.

      Action event and itemstatechanged event is generated.Again press the "ENTER" key but this time don't change or select a new item from the list.Unlike solaris,this time you can't see any item state changed event getting generated .
      Only Action event will be generated.

      Windows Outout is follows:
      --------------------------
      ItemStateChanged event is triggered
      actionPerformed
      actionPerformed
      actionPerformed

      (No item state changed event is generated)

      Thus the behaviour of item state changed event is different in Solaris and windows.


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dcherepanov Dmitry Cherepanov
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: