diff --git a/OpticalSignalingCommsToolbox/src/main/java/edu/nps/moves/qrtda/swing/QRTdaGuiPanel.java b/OpticalSignalingCommsToolbox/src/main/java/edu/nps/moves/qrtda/swing/QRTdaGuiPanel.java index 1cfccfd34c9850d125d19d724c25bbd8c493d33d..4dc637e0bae8156e8998921683522d0083789e8b 100644 --- a/OpticalSignalingCommsToolbox/src/main/java/edu/nps/moves/qrtda/swing/QRTdaGuiPanel.java +++ b/OpticalSignalingCommsToolbox/src/main/java/edu/nps/moves/qrtda/swing/QRTdaGuiPanel.java @@ -163,9 +163,7 @@ public class QRTdaGuiPanel extends JPanel implements ReadyListener the gui event thread runs differently than on Mac, and setting one divider without finishing out the last is a problem. */ - new Thread(new Runnable() { - @Override - public void run() { + new Thread(() -> { try { SwingUtilities.invokeAndWait(()->TBSplit.setDividerLocation(Integer.parseInt(QRPreferences.getInstance().get(TBDIVIDERLOCATION_PREF, "-1")))); SwingUtilities.invokeAndWait(()->LRSplit.setDividerLocation(Integer.parseInt(QRPreferences.getInstance().get(LRDIVIDERLOCATION_PREF, "-1")))); @@ -176,7 +174,6 @@ public class QRTdaGuiPanel extends JPanel implements ReadyListener System.out.println("Error setting splitter dividers"); } SwingUtilities.invokeLater(()->setupSplitListeners()); - } }).start(); } /**