-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P3
-
None
-
Affects Version/s: 1.4.0
-
Component/s: client-libs
-
generic
-
generic
I am calling JComboBox.setEnabled(false) and JComboBox is disabled. On clicking one of the buttons in the frame, I am calling JComboBox.showPopup(). I expect JComboBox not to show the popup since it is disabled. But JcomboBoc shows the popup and the user is able to select the items from the drop-down. Selection of any item triggers ActionEvent. I feel this is incorrect. JComboBox.setPopupVisible() must check whether the component is enabled or not before showing the Popup.
This is reproducible atleast since 1.4 on all platforms. Reproducible on Mustang-b28 also.
I have attached a sample test. Execute the sample test. You would see a JFrame with a JcomboBox and a button. Make sure JComboBox is disabled. Click on the button. You would see a popup. Try selecting an item from the popup. You would see an ActionEvent being triggered in the console.
###@###.### 2005-03-26 13:31:48 GMT
This is reproducible atleast since 1.4 on all platforms. Reproducible on Mustang-b28 also.
I have attached a sample test. Execute the sample test. You would see a JFrame with a JcomboBox and a button. Make sure JComboBox is disabled. Click on the button. You would see a popup. Try selecting an item from the popup. You would see an ActionEvent being triggered in the console.
###@###.### 2005-03-26 13:31:48 GMT