Skip to content

Commit faa5b08

Browse files
committed
java.awt.List fix for value adjusting
missing "!" in swingjs.a2s.List item event check for JList.isValueAdjusting()
1 parent af2c6f3 commit faa5b08

File tree

6 files changed

+3
-3
lines changed

6 files changed

+3
-3
lines changed
36 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200108165131
1+
20200108182527
36 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200108165131
1+
20200108182527
36 Bytes
Binary file not shown.

sources/net.sf.j2s.java.core/src/swingjs/a2s/List.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ protected void processItemEvent(ItemEvent e) {
858858

859859
@Override
860860
public void valueChanged(ListSelectionEvent e) {
861-
if (itemListener != null && getSelectionModel().getValueIsAdjusting()) {
861+
if (itemListener != null && !getSelectionModel().getValueIsAdjusting()) {
862862
processItemEvent(new ItemEvent(this, ItemEvent.ITEM_STATE_CHANGED, getSelectedItem(), ItemEvent.SELECTED));
863863
}
864864
}

0 commit comments

Comments
 (0)