Skip to content

Commit

Permalink
Fix exception after focus out on real qty
Browse files Browse the repository at this point in the history
  • Loading branch information
mwithi committed Sep 4, 2024
1 parent f3d7892 commit b62b53a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.SwingUtilities;
import javax.swing.border.EmptyBorder;
import javax.swing.event.EventListenerList;
import javax.swing.event.ListSelectionEvent;
Expand Down Expand Up @@ -1197,7 +1198,9 @@ public void setValueAt(Object value, int r, int c) {
}
inventoryRowListAdded.add(invRow);
inventoryRowSearchList.set(r, invRow);
jTableInventoryRow.updateUI();
SwingUtilities.invokeLater(() -> {
jTableInventoryRow.updateUI();
});
}
}

Expand Down

0 comments on commit b62b53a

Please sign in to comment.