Changed start method name to getInstance.

This commit is contained in:
WickedJack99
2023-12-05 15:42:17 +01:00
parent ad88647298
commit 3175ec0b57
2 changed files with 2 additions and 2 deletions

View File

@@ -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.");
}

View File

@@ -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();
}