WindowAction

fun WindowAction(    name: String,     frame: JFrame,     keyStroke: KeyStroke? = null,     action: () -> Unit)