Make the window in info.kt visible.

This commit is contained in:
Username404-59 2021-04-09 10:06:02 +02:00
parent 7575bee975
commit bc77080124
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 8 additions and 0 deletions

View File

@ -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