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