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 ...@@ -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 the gui event thread runs differently than on Mac, and setting one divider without finishing out the
last is a problem. last is a problem.
*/ */
new Thread(new Runnable() { new Thread(() -> {
@Override
public void run() {
try { try {
SwingUtilities.invokeAndWait(()->TBSplit.setDividerLocation(Integer.parseInt(QRPreferences.getInstance().get(TBDIVIDERLOCATION_PREF, "-1")))); SwingUtilities.invokeAndWait(()->TBSplit.setDividerLocation(Integer.parseInt(QRPreferences.getInstance().get(TBDIVIDERLOCATION_PREF, "-1"))));
SwingUtilities.invokeAndWait(()->LRSplit.setDividerLocation(Integer.parseInt(QRPreferences.getInstance().get(LRDIVIDERLOCATION_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 ...@@ -176,7 +174,6 @@ public class QRTdaGuiPanel extends JPanel implements ReadyListener
System.out.println("Error setting splitter dividers"); System.out.println("Error setting splitter dividers");
} }
SwingUtilities.invokeLater(()->setupSplitListeners()); SwingUtilities.invokeLater(()->setupSplitListeners());
}
}).start(); }).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