MenuBarBuilder

class MenuBarBuilder(theMenuBar: JMenuBar)

A helper class for building the menu bar.

Constructors

Link copied to clipboard
fun MenuBarBuilder(theMenuBar: JMenuBar)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun menu(menu: JMenu)

Add a pre-built menu.

fun menu(name: String, body: MenuBuilder.() -> Unit): JMenu

Create a submenu directly.

Extensions

Link copied to clipboard
fun MenuBarBuilder.addWindowMenu(frame: JFrame)

Create a Window menu that appears suitable for the platform. Which is only Mac at the moment, although these commands should work anywhere.