Make the window in info.kt visible.
This commit is contained in:
parent
7575bee975
commit
bc77080124
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue