The class
IlvDashboardMenuBar is
a Swing
JMenu
that accepts a set of
IlvDashboardAction instances. It inherits from
IlvDiagrammerMenuBar
and
includes File, Edit, View and Options menus.
The following code example shows how to set an IlvDashboardMenuBar
in
a Dashboard Editor application.
Adding a menu bar to a Dashboard Editor application
dashEd = new IlvDashboardEditor();
IlvDashboardMenuBar menuBar = new IlvDashboardMenuBar(dashEd);
//set the menu for the JFrame
this.setJMenuBar(mbar);
For an example of how to extend IlvDashboardMenuBar
to
add a new menu bar, see the Dashboard Editor sample. This sample
can be found at: