Use FMouseAdapter's onLeftDoubleClick event for double click detection in ListChooser.

This commit is contained in:
kms70847
2019-06-19 01:34:19 -04:00
parent 707638c0c5
commit c82950555d

View File

@@ -134,10 +134,8 @@ public class ListChooser<T> {
}
});
this.lstChoices.addMouseListener(new FMouseAdapter() {
@Override public void onLeftClick(final MouseEvent e) {
if (e.getClickCount() == 2) {
@Override public void onLeftDoubleClick(final MouseEvent e) {
ListChooser.this.commit();
}
}
});
}