nuno.ferreira
21 Dec 2011, 9:05 AM
Hello, i have this piece of code to deselect a selected item in grid
if (list.getSelectionModel().getSelectedItem() != null) {
list.getSelectionModel().deselect(list.getSelectionModel().getSelectedItem());
}
This donīt work, throws an exception - java.lang.IndexOutOfBoundsException: Index: 0, Size: 0.
Does anyone have a solution to this problem?
Sorry for my english.
if (list.getSelectionModel().getSelectedItem() != null) {
list.getSelectionModel().deselect(list.getSelectionModel().getSelectedItem());
}
This donīt work, throws an exception - java.lang.IndexOutOfBoundsException: Index: 0, Size: 0.
Does anyone have a solution to this problem?
Sorry for my english.