use of javax.swing.JMenuBar in project libgdx by libgdx.
the class Hiero method initializeMenus.
private void initializeMenus() {
{
JMenuBar menuBar = new JMenuBar();
setJMenuBar(menuBar);
{
JMenu fileMenu = new JMenu();
menuBar.add(fileMenu);
fileMenu.setText("File");
fileMenu.setMnemonic(KeyEvent.VK_F);
{
openMenuItem = new JMenuItem("Open Hiero settings file...");
openMenuItem.setMnemonic(KeyEvent.VK_O);
openMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, KeyEvent.CTRL_MASK));
fileMenu.add(openMenuItem);
}
{
saveMenuItem = new JMenuItem("Save Hiero settings file...");
saveMenuItem.setMnemonic(KeyEvent.VK_S);
saveMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, KeyEvent.CTRL_MASK));
fileMenu.add(saveMenuItem);
}
fileMenu.addSeparator();
{
saveBMFontMenuItem = new JMenuItem("Save BMFont files (text)...");
saveBMFontMenuItem.setMnemonic(KeyEvent.VK_B);
saveBMFontMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_B, KeyEvent.CTRL_MASK));
fileMenu.add(saveBMFontMenuItem);
}
fileMenu.addSeparator();
{
exitMenuItem = new JMenuItem("Exit");
exitMenuItem.setMnemonic(KeyEvent.VK_X);
fileMenu.add(exitMenuItem);
}
}
}
}
use of javax.swing.JMenuBar in project binnavi by google.
the class CReilInstructionDialog method addMenuBar.
/**
* Adds a menu bar to the dialog.
*/
private void addMenuBar() {
final JMenu menu = new JMenu("REIL Code");
final JMenuItem copyItem = new JMenuItem(CActionProxy.proxy(new CActionCopyAllReilCode(m_textArea)));
menu.add(copyItem);
final JMenuBar menuBar = new JMenuBar();
menuBar.add(menu);
setJMenuBar(menuBar);
}
use of javax.swing.JMenuBar in project ACS by ACS-Community.
the class BeanGrouper method getBeanGrouperMenuBar.
private JMenuBar getBeanGrouperMenuBar() {
if (beanGrouperMenuBar == null) {
beanGrouperMenuBar = new JMenuBar();
beanGrouperMenuBar.add(getScriptMenu());
beanGrouperMenuBar.add(getEditMenu());
}
return beanGrouperMenuBar;
}
use of javax.swing.JMenuBar in project ACS by ACS-Community.
the class ErrorTreeCellRenderer method getEBEMenuBar.
/**
* This method initializes jJMenuBar
*
* @return javax.swing.JMenuBar
*/
private JMenuBar getEBEMenuBar() {
if (EBEMenuBar == null) {
EBEMenuBar = new JMenuBar();
EBEMenuBar.add(getFileMenu());
}
return EBEMenuBar;
}
use of javax.swing.JMenuBar in project pcgen by PCGen.
the class GMGenSystem method createMenuBar.
// Creates the MenuBar for the application.
private void createMenuBar() {
systemMenuBar = new JMenuBar();
createFileMenu();
createEditMenu();
createToolsMenu();
setJMenuBar(systemMenuBar);
setDefaultEnablementOfMenuItems();
pack();
}
Aggregations