GUI Commands 2.0 Has Arrived!

Check out the new website, read about what's new or try the GUI Commands 2.0 Demo.

Welcome to the GUI Command Demo

This demo demonstrates some of the capabilities of the GUI Command library. Every click you make will be handled directly by the library. You can access the various demo screens from either the View menu or by clicking the links at the bottom of the page. You can always get back to the welcome screen by typing Control-1.

You'll notice that a number of pages have hyperlinks on them that invoke various commands. This is achieved by adding a CommandHyperLinkListener to the JEditorPane and using URLs of the form command://command-id. You can also include groups, here's the view menu for example.

Some of the demo screens will be inserting their own items into the main menu. Typically I've configured their faces to use HTML so you can see them more easily. This does have the odd side effect which you may notice if you look hard.. (c:

The Visible and Enabled options on the edit menu have been dynamically created by listening as Commands are registered with the CommandManager. As each new command is registered a new ToggleCommand is created to control its visible and enabled states.

Have fun!

Faces  |  Groups  |  Toggle Commands