Prevent crash when pressing Enter or Space on ListChooser

This commit is contained in:
drdev
2014-05-03 17:03:52 +00:00
parent 83add199c1
commit aaa398cedc

View File

@@ -134,7 +134,7 @@ public class ListChooser<T> extends FContainer {
}
setHeight(Math.min(ITEM_HEIGHT * list.size(), FOptionPane.getMaxDisplayObjHeight()));
optionPane = new FOptionPane(null, title, null, this, options, minChoices < 0 ? 0 : -1, new Callback<Integer>() {
optionPane = new FOptionPane(null, title, null, this, options, 0, new Callback<Integer>() {
@Override
public void run(Integer result) {
called = false;