ToolBar is derived from JToolBar and can be used just like a normal Swing toolbar. Additional methods are documented in the Synthetica Addons API.

Generally the default arrow icon of the popup button will be provided by the active Synthetica Look and Feel. It is also possible to set a custom arrow icon by the #getPopupButton() method.

All relevant lines are highlighted. Press the "Run..." button to start the example.