super(true);
// Create a menu bar and give it a bevel border
menuBar = new JMenuBar();
menuBar.setBorder(new BevelBorder(BevelBorder.RAISED));
// Create a menu and add it to the menu bar
JMenu menu = new JMenu("Menu");
menuBar.add(menu);
// Create a toolbar and give it an etched border
toolBar = new JToolBar();
toolBar.setBorder(new EtchedBorder());
// Instantiate a sample action with the NAME property of
// "Download" and the appropriate SMALL_ICON property.
SampleAction exampleAction = new SampleAction("Download",
new ImageIcon("action.gif"));
// Finally, add the sample action to the menu and the toolbar.
menu.add(exampleAction);
toolBar.add(exampleAction);