use of easik.ui.menu.FileClearViewAction in project fql by CategoricalData.
the class ViewFrame method buildMenu.
/**
* Builds the menu
*/
private void buildMenu() {
JMenuBar mainMenu;
@SuppressWarnings("unused") JMenu menuFile, menuAction, menuHelp;
mainMenu = new JMenuBar();
// Make the File Menu
menuFile = new JMenu("File");
final JMenu exportMenu = new JMenu("Export to");
menuFile.add(exportMenu);
menuFile.addSeparator();
addMenuItem(exportMenu, new JMenuItem(new ExportImageAction<>(this)), null);
mainMenu.add(menuFile);
menuFile.setMnemonic(KeyEvent.VK_F);
addMenuItem(menuFile, new JMenuItem(new FileClearViewAction(this)), null);
menuFile.addSeparator();
addMenuItem(menuFile, new JMenuItem(new DocumentInfoAction(this)), KeyEvent.VK_I);
menuFile.addSeparator();
addMenuItem(menuFile, new JMenuItem(new FileQuitAction(this)), KeyEvent.VK_W);
// Create help menu
menuHelp = new JMenu("Help");
mainMenu.add(menuHelp);
menuHelp.setMnemonic(KeyEvent.VK_H);
menuHelp.add(new HelpAction());
menuHelp.add(new AboutAction());
setJMenuBar(mainMenu);
}
Aggregations