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

Disabling a choice after selection locks keyboard, mouse and makes the system unusable, Xtoolkit

XMLWordPrintable

    • b35
    • sparc
    • solaris_9
    • Verified

      I have a choice and I have added an ItemListener to it. When the user selects an item, I am disabling the choice inside itemStateChanged() method by calling setEnabled(false). When I select an item with the keyboard, the Choice gets disabled immediately and the popup stays there. All the keyboard and mouse inputs to the system are blocked and I am not able to access anything on the system using keyboard / mouse. The XServer almost hangs. I had to remote login into that machine from a different machine in order to kill the java application that causes this. This must be fixed at the earliest.

      This is reproducible only on XToolkit since Tiger. Not occuring on Win32, Motif. This is pretty severe in the sense that it makes the XServer hang. I reproduced this on Solaris9 (CDE) with XToolkit.

      I have attached a sample test. Execute the sample test. You would see a Frame with a Choice. Click on the choice. A drop-down will appear and the second item will be shown as selected. Now press the down arrow. The choice will be disabled and you will not be able to use your keyboard or mouse after this.
      ###@###.### 2005-03-27 17:12:06 GMT

            dav Andrei Dmitriev (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: