assetsense / gwtwindowmanager

Automatically exported from code.google.com/p/gwtwindowmanager
0 stars 0 forks source link

DefaultComboBoxModel setSelectedItem throws IndexOutOfBoundException #62

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
What I want to do is to deselect selected item in combo. First , I usIte 
ComboBox setSelectedIndex with index -1, like Swing. But it did not work, 
because, setSelectedIndex method reject -1 as index. 
Then , I checked , DefaultComboBoxModel setSelectedItem method. it says 
that it will accept null values. But, it throws below exception,

[ERROR] Uncaught exception escaped
java.lang.ArrayIndexOutOfBoundsException: -1
    at java.util.Vector.get(Vector.java:696)
    at org.gwt.mosaic.ui.client.list.DefaultComboBoxModel.getElementAt
(DefaultComboBoxModel.java:70)
    at org.gwt.mosaic.ui.client.ListBox.contentsChanged
(ListBox.java:167)
    at 
org.gwt.mosaic.ui.client.list.DefaultComboBoxModel.fireContentsChanged
(DefaultComboBoxModel.java:44)
    at 
org.gwt.mosaic.ui.client.list.DefaultComboBoxModel.setSelectedItem
(DefaultComboBoxModel.java:105)

What is the expected output? What do you see instead?
deselect selected combo item.. 

What version of the product are you using? On what operating system?
gwt-mosaic-0.2.0-rc3
windows vista

Please provide any additional information below.

Original issue reported on code.google.com by gurselk...@gmail.com on 14 May 2009 at 2:52

GoogleCodeExporter commented 8 years ago
Sorry, I mistakely add to wrong project. Could you remove or close this issue?..

Original comment by gurselk...@gmail.com on 14 May 2009 at 3:21