Search in sources :

Example 1 with VSDPreferencesAction

use of jmri.jmrit.vsdecoder.swing.VSDPreferencesAction in project JMRI by JMRI.

the class VSDecoderFrame method buildMenu.

private void buildMenu() {
    JMenu fileMenu = new JMenu(Bundle.getMessage("MenuFile"));
    fileMenu.add(new LoadVSDFileAction(Bundle.getMessage("VSDecoderFileMenuLoadVSDFile")));
    fileMenu.add(new StoreXmlVSDecoderAction(Bundle.getMessage("VSDecoderFileMenuSaveProfile")));
    fileMenu.add(new LoadXmlVSDecoderAction(Bundle.getMessage("VSDecoderFileMenuLoadProfile")));
    fileMenu.addSeparator();
    fileMenu.add(new VSDPreferencesAction(Bundle.getMessage("VSDecoderFileMenuPreferences")));
    // disable XML store
    fileMenu.getItem(1).setEnabled(false);
    // disable XML load
    fileMenu.getItem(2).setEnabled(false);
    menuList = new ArrayList<JMenu>(2);
    menuList.add(fileMenu);
    this.setJMenuBar(new JMenuBar());
    this.getJMenuBar().add(fileMenu);
    this.addHelpMenu("package.jmri.jmrit.vsdecoder.VSDecoderFrame", true);
}
Also used : VSDPreferencesAction(jmri.jmrit.vsdecoder.swing.VSDPreferencesAction) JMenu(javax.swing.JMenu) JMenuBar(javax.swing.JMenuBar)

Aggregations

JMenu (javax.swing.JMenu)1 JMenuBar (javax.swing.JMenuBar)1 VSDPreferencesAction (jmri.jmrit.vsdecoder.swing.VSDPreferencesAction)1