From bc77080124d35945068204819cc1ac85ed73df49 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Fri, 9 Apr 2021 10:06:02 +0200 Subject: [PATCH] Make the window in info.kt visible. --- .../src/main/kotlin/fr/username404/snowygui/exec/info.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/src/main/kotlin/fr/username404/snowygui/exec/info.kt b/common/src/main/kotlin/fr/username404/snowygui/exec/info.kt index 2a97ffe..a33132a 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/exec/info.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/exec/info.kt @@ -16,6 +16,10 @@ object ExecObj { val frame = JFrame("Hey!") with(frame) { createInterface(this) + setSize(800, 300) + isResizable = false + defaultCloseOperation = JFrame.EXIT_ON_CLOSE + isVisible = true } } private fun createInterface(frame: JFrame) { @@ -43,6 +47,10 @@ object ExecObj { } else { super.paintComponent(g) } + }; init { + layout = FlowLayout() + componentOrientation = ComponentOrientation.LEFT_TO_RIGHT + ((this.layout) as FlowLayout).alignment = FlowLayout.CENTER } }.apply { // TODO Add text