fun MainWindow() { super("Main Window") settings = Settings() update = UpdateWindow() blocksWindow = BlockListWindow() consoleLog = GUIConsoleLog() if (settings.getPreferences().getBoolean("OPEN_CONSOLE_ON_START", true)) { consoleLog.setVisible(true) } export = ExportWindow() main = this setSize(1000, 800) setMinimumSize(Dimension(400, 400)) setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) setTitle("jMC2Obj") setLocationRelativeTo(null) panel = MainPanel() add(panel) setVisible(true) }
Window contructor .