Changed start method name to getInstance.
This commit is contained in:
@@ -10,7 +10,7 @@ public class ViewThread extends Thread implements View {
|
||||
private static final String className = "ViewThread";
|
||||
|
||||
public void run() {
|
||||
MainFrame.start();
|
||||
MainFrame.getInstance();
|
||||
printMessage("Swing ui thread was started.");
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ public final class MainFrame extends JFrame implements Themeable {
|
||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
}
|
||||
|
||||
public static MainFrame start() {
|
||||
public static MainFrame getInstance() {
|
||||
if (null == instance) {
|
||||
instance = new MainFrame();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user