Run in Event Dispatch Thread
This commit is contained in:
parent
61e42fcfc4
commit
acbfa9bda4
1 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,7 @@ import static java.awt.BorderLayout.SOUTH;
|
|||
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.SwingUtilities;
|
||||
import gui.menu.XLMenuBar;
|
||||
|
||||
public class XL extends JFrame {
|
||||
|
@ -44,6 +45,7 @@ public class XL extends JFrame {
|
|||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new XL(new XLList(), new XLCounter());
|
||||
// Run on the Event Dispatch Thread
|
||||
SwingUtilities.invokeLater(() -> new XL(new XLList(), new XLCounter()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue