Skip to content
Snippets Groups Projects
Commit c9e52433 authored by J. M. Bailey's avatar J. M. Bailey
Browse files

Use lambda

parent 4a7bf334
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment