Display a GUI window. The window need not have any contents, but should respond to requests to be closed.

import javax.swing.JFrame
 
fun main(args : Array<String>) {
    JFrame("Title").apply {
        setSize(800, 600)
        defaultCloseOperation = JFrame.EXIT_ON_CLOSE
        isVisible = true
    }
}