Package com.santiagolizardo.beobachter.gui.menu

Examples of com.santiagolizardo.beobachter.gui.menu.Menu


    actionFactory = new ActionFactory(this);

    desktop = new DesktopPanel();

    menu = new Menu(desktop, this);
    setJMenuBar(menu);

    setTitle(Constants.APP_NAME);

    setSize(configData.getWindowWidth(), configData.getWindowHeight());
View Full Code Here


  public void updateActions(int delta) {
    boolean areWindowsOpen = desktop.getAllFrames().length + delta > 0;
    actionFactory.getSelectAllAction().setEnabled(areWindowsOpen);

    Menu mainMenu = ((Menu) getJMenuBar());
    mainMenu.getFileMenu().getSaveSessionMenuItem()
        .setEnabled(areWindowsOpen);
    mainMenu.getEditMenu().setEnabled(areWindowsOpen);
    mainMenu.getWindowMenu().setEnabled(areWindowsOpen);
  }
View Full Code Here

TOP

Related Classes of com.santiagolizardo.beobachter.gui.menu.Menu

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.