Over a million developers have joined DZone.

Quick Menu Creation with the Java SwingBuilder's SWT-style API

DZone's Guide to

Quick Menu Creation with the Java SwingBuilder's SWT-style API

Free Resource

The latest 0.2.DEV release of the Java SwingBuilder introduces SWT-style API for creating menu items in the YAML file, thus allowing you to specify the text, mnemonic and accelerator all in one property:

JMenuItem(name=saveMenu, onAction=save, text="&Save\tCtrl+S")


Get the latest version from our site: 

In other news we've also updated our visual layout DSL wiki to show how John O'Conner's layout manager challenge:

...would be implemented in the Java SwingBuilder with our visual layout DSL for MigLayout ...piece of cake:





Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}