import java.awt.EventQueue
import javax.swing.JFrame
class Application : JFrame() {
init {
title = "Hello world"
defaultCloseOperation = JFrame.EXIT_ON_CLOSE
setSize(400, 300)
setLocationRelativeTo(null)
}
}
fun main() {
EventQueue.invokeLater {
val window = Application()
window.isVisible = true
}
}
Přehled jednotlivých komponent Swingu: web.mit.edu/6.005/www/sp14/psets/ps4/java-6-tutorial/components.html
