Package javafx.scene.control

Examples of javafx.scene.control.MenuBar


      }
    });
  }

  public MenuBar createMenueBar(){
    final MenuBar menuBar = new MenuBar();
    menuBar.getMenus().add(formGroup.createMenu());
    return menuBar;
  }
View Full Code Here


    }

    private MenuBar createMenubar() {

        MenuBar menuBar = new MenuBar();

        MenuItem openItem = new MenuItem("Open");
        AwesomeDude.setIcon(openItem, AwesomeIcon.FILE);
        MenuItem saveItem = new MenuItem("Save");
        AwesomeDude.setIcon(saveItem, AwesomeIcon.DOWNLOAD);
        MenuItem saveAsItem = new MenuItem("Save As...");
        AwesomeDude.setIcon(saveAsItem, AwesomeIcon.DOWNLOAD);
        MenuItem exitItem = new MenuItem("Exit");
        AwesomeDude.setIcon(exitItem, AwesomeIcon.SIGN_OUT);

        Menu menuFile = new Menu("File");
        menuFile.getItems().add(openItem);
        menuFile.getItems().add(saveItem);
        menuFile.getItems().add(saveAsItem);
        menuFile.getItems().add(new SeparatorMenuItem());
        menuFile.getItems().add(exitItem);

        Menu menuEdit = new Menu("Edit");
        Menu menuView = new Menu("View");

        menuBar.getMenus().addAll(menuFile, menuEdit, menuView);

        return menuBar;
    }
View Full Code Here

    }

    private MenuBar createMenubar() {

        MenuBar menuBar = new MenuBar();

        MenuItem openItem = new MenuItem("Open");
        AwesomeDude.setIcon(openItem, AwesomeIcon.FILE);
        MenuItem saveItem = new MenuItem("Save");
        AwesomeDude.setIcon(saveItem, AwesomeIcon.DOWNLOAD);
        MenuItem saveAsItem = new MenuItem("Save As...");
        AwesomeDude.setIcon(saveAsItem, AwesomeIcon.DOWNLOAD);
        MenuItem exitItem = new MenuItem("Exit");
        AwesomeDude.setIcon(exitItem, AwesomeIcon.SIGN_OUT);

        Menu menuFile = new Menu("File");
        menuFile.getItems().add(openItem);
        menuFile.getItems().add(saveItem);
        menuFile.getItems().add(saveAsItem);
        menuFile.getItems().add(new SeparatorMenuItem());
        menuFile.getItems().add(exitItem);

        Menu menuEdit = new Menu("Edit");
        Menu menuView = new Menu("View");

        menuBar.getMenus().addAll(menuFile, menuEdit, menuView);

        return menuBar;
    }
View Full Code Here

    }

    private MenuBar createMenubar() {

        MenuBar menuBar = new MenuBar();

        MenuItem openItem = new MenuItem("Open");
        AwesomeDude.setIcon(openItem, AwesomeIcon.FILE);
        MenuItem saveItem = new MenuItem("Save");
        AwesomeDude.setIcon(saveItem, AwesomeIcon.DOWNLOAD);
        MenuItem saveAsItem = new MenuItem("Save As...");
        AwesomeDude.setIcon(saveAsItem, AwesomeIcon.DOWNLOAD);
        MenuItem exitItem = new MenuItem("Exit");
        AwesomeDude.setIcon(exitItem, AwesomeIcon.SIGN_OUT);

        Menu menuFile = new Menu("File");
        menuFile.getItems().add(openItem);
        menuFile.getItems().add(saveItem);
        menuFile.getItems().add(saveAsItem);
        menuFile.getItems().add(new SeparatorMenuItem());
        menuFile.getItems().add(exitItem);

        Menu menuEdit = new Menu("Edit");
        Menu menuView = new Menu("View");

        menuBar.getMenus().addAll(menuFile, menuEdit, menuView);

        return menuBar;
    }
View Full Code Here

        tabPane.getSelectionModel().select(tabListBox);

        pane.setBottom(tabPane);
        Scene myScene = new Scene(pane, 700, 600);

        MenuBar menuBar = new MenuBar();
        Menu menuFile = new Menu("File");
        menuFile.getItems().addAll(new MenuItem("New"), new MenuItem("Open File..."));
        Menu menuEdit = new Menu("Edit");
        menuEdit.getItems().addAll(new MenuItem("Undo"), new MenuItem("Redo"));
        Menu menuView = new Menu("View");
        menuView.getItems().addAll(new MenuItem("Zoom In"), new MenuItem("Zoom Out"));
        menuBar.getMenus().addAll(menuFile, menuEdit, menuView);
        pane.getChildren().add(menuBar);

        AquaFx.style();
        stage.setTitle("AquaFX");
        stage.setScene(myScene);
View Full Code Here

        pane.setBottom(anchorpane);

        /*
         * MenuBar
         */
        MenuBar menuBar = new MenuBar();
        Menu menuSystemPreferences = new Menu("Systemeinstellungen");
        Menu menuServices = new Menu("Dienste");
        MenuItem menuNoService = new MenuItem("Keine Dienste Verf\u00FCgbar");
        menuNoService.setDisable(true);

        MenuItem menuServPref = new MenuItem("Dienste Enistellungen ...");
        menuServices.getItems().addAll(menuNoService, menuServPref);
        MenuItem menuHide = new MenuItem("Sytemeinstellungen ausblenden");
        menuHide.setAccelerator(KeyCombination.keyCombination("shortcut+H"));
        MenuItem menuHideOthers = new MenuItem("Andere ausblenden");
        menuHideOthers.setAccelerator(KeyCombination.keyCombination("Alt+shortcut+H"));
        MenuItem menuShowAll = new MenuItem("Alle einblenden");
        menuShowAll.setDisable(true);
        menuSystemPreferences.getItems().addAll(new MenuItem("\u00DCber Systemeinstellungen"), new SeparatorMenuItem(), menuServices,
                new SeparatorMenuItem(), menuHide, menuHideOthers, menuShowAll, new MenuItem("Systemeinstellungen beenden"));

        Menu menuEdit = new Menu("Bearbeiten");
        menuEdit.getItems().addAll(new MenuItem("..."));

        Menu menuPreferences = new Menu("Einstellungen");
        menuPreferences.getItems().addAll(new MenuItem("..."));

        Menu menuWindow = new Menu("Fenster");
        MenuItem windowClose = new MenuItem("Schlie\u00dfen");
        windowClose.setAccelerator(KeyCombination.keyCombination("shortcut+W"));
        MenuItem windowDock = new MenuItem("Im Dock ablegen");
        windowDock.setAccelerator(KeyCombination.keyCombination("shortcut+M"));
        CheckMenuItem actual = new CheckMenuItem("Datum & Uhrzeit");
        actual.setSelected(true);
        menuWindow.getItems().addAll(windowClose, windowDock, new SeparatorMenuItem(), actual);

        Menu menuHelp = new Menu("Hilfe");
        MenuItem help = new MenuItem("Systemeinstellungen-Hilfe");
        help.setAccelerator(KeyCombination.keyCombination("shortcut+?"));
        menuHelp.getItems().addAll(new MenuItem("Schlie\u00dfen"), help);

        menuBar.getMenus().addAll(menuSystemPreferences, menuEdit, menuPreferences, menuWindow, menuHelp);
        pane.getChildren().add(menuBar);

        Scene myScene = new Scene(pane, 667, 563);
        AquaFx.style();
        stage.setTitle("AquaFX");
View Full Code Here

        mainBox.getChildren().add(anchorButtons);

        /*
         * MenuBar
         */
        MenuBar menuBar = new MenuBar();
        Menu menuSystemPreferences = new Menu("Systemeinstellungen");
        Menu menuServices = new Menu("Dienste");
        MenuItem menuNoService = new MenuItem("Keine Dienste Verf\u00FCgbar");
        menuNoService.setDisable(true);
        MenuItem menuServPref = new MenuItem("Dienste Enistellungen ...");
        menuServices.getItems().addAll(menuNoService, menuServPref);
        MenuItem menuHide = new MenuItem("Sytemeinstellungen ausblenden");
        menuHide.setAccelerator(KeyCombination.keyCombination("shortcut+H"));
        MenuItem menuHideOthers = new MenuItem("Andere ausblenden");
        menuHideOthers.setAccelerator(KeyCombination.keyCombination("Alt+shortcut+H"));
        MenuItem menuShowAll = new MenuItem("Alle einblenden");
        menuShowAll.setDisable(true);
        menuSystemPreferences.getItems().addAll(new MenuItem("\u00DCber Systemeinstellungen"), new SeparatorMenuItem(), menuServices,
                new SeparatorMenuItem(), menuHide, menuHideOthers, menuShowAll, new MenuItem("Systemeinstellungen beenden"));

        Menu menuEdit = new Menu("Bearbeiten");
        menuEdit.getItems().addAll(new MenuItem("..."));

        Menu menuPreferences = new Menu("Einstellungen");
        menuPreferences.getItems().addAll(new MenuItem("..."));

        Menu menuWindow = new Menu("Fenster");
        MenuItem windowClose = new MenuItem("Schlie\u00dfen");
        windowClose.setAccelerator(KeyCombination.keyCombination("shortcut+W"));
        MenuItem windowDock = new MenuItem("Im Dock ablegen");
        windowDock.setAccelerator(KeyCombination.keyCombination("shortcut+M"));
        CheckMenuItem actual = new CheckMenuItem("Datum & Uhrzeit");
        actual.setSelected(true);
        menuWindow.getItems().addAll(windowClose, windowDock, new SeparatorMenuItem(), actual);

        Menu menuHelp = new Menu("Hilfe");
        MenuItem help = new MenuItem("Systemeinstellungen-Hilfe");
        help.setAccelerator(KeyCombination.keyCombination("shortcut+?"));
        menuHelp.getItems().addAll(new MenuItem("Schlie\u00dfen"), help);

        menuBar.getMenus().addAll(menuSystemPreferences, menuEdit, menuPreferences, menuWindow, menuHelp);
        mainBox.getChildren().add(menuBar);

        Scene myScene = new Scene(mainBox, 667, sceneHeight);
        AquaFx.style();
        stage.setTitle("Netzwerk (AquaFX)");
View Full Code Here

        pane.setCenter(new Label("MenuButtons and other related controls"));

        Scene myScene = new Scene(pane, 950, 200);

        MenuBar menuBar = new MenuBar();
        Menu menuFile = new Menu("File");
        menuFile.getItems().addAll(new MenuItem("New"), new MenuItem("Open File..."));
        Menu menuEdit = new Menu("Edit");
        menuEdit.getItems().addAll(new MenuItem("Undo"), new MenuItem("Redo"));
        Menu menuView = new Menu("View");
        menuView.getItems().addAll(new MenuItem("Zoom In"), new MenuItem("Zoom Out"));
        menuBar.getMenus().addAll(menuFile, menuEdit, menuView);
        pane.getChildren().add(menuBar);

        AquaFx.style();
        stage.setTitle("AquaFX");
        stage.setScene(myScene);
View Full Code Here

    content.getChildren().addAll(cp,
        new ResultsPanel(results, stage.getWidth(), stage.getHeight()));
  }

  private MenuBar createMenuBar() {
    MenuBar menuBar = new MenuBar();
    Menu menuCommon = new Menu("Menu");
    MenuItem miexit = new MenuItem("Exit");
    miexit.setOnAction(new ExitEventHandler());
    MenuItem milogout = new MenuItem("Log out");
    milogout.setOnAction(new EventHandler<ActionEvent>() {
      @Override
      public void handle(ActionEvent arg0) {
        setPanel(PanelType.LoginPanel, null);
      }
    });
    menuCommon.getItems().addAll(milogout, miexit);
    menuBar.getMenus().addAll(menuCommon);
    return menuBar;
  }
View Full Code Here

    setTitle("BeloteTime");
    initStyle(StageStyle.DECORATED);

    _viewBorderPane = new BorderPane();

    MenuBar menuBar = new MenuBar();

    Menu fileMenu = new Menu("Fichier");
    _newLocalMenuItem = new MenuItem("Nouvelle partie (local)");
    _newLocalMenuItem.setOnAction(this);

    _createOnlineMenuItem = new MenuItem("Cr�er une partie (en ligne)");
    _createOnlineMenuItem.setOnAction(this);
   
    _joinOnlineMenuItem = new MenuItem("Rejoindre la partie(en ligne)");
    _joinOnlineMenuItem.setOnAction(this);
   
    _createTeamMenuItem = new MenuItem("Cr�er une �quipe");
    _createTeamMenuItem.setOnAction(new EventHandler(){

      @Override
      public void handle(Event arg0) {
        // TODO Auto-generated method stub
        new CreationTeamStage(_userInfo);
      }
     
    });

    fileMenu.getItems().addAll(_newLocalMenuItem, _createOnlineMenuItem, _joinOnlineMenuItem, _createTeamMenuItem);
   
    Menu accountMenu = new Menu("Compte");
    _infosMenuItem = new MenuItem("Mes infos");
    _infosMenuItem.setOnAction(this);
   
    _droitMenuItem = new MenuItem("Mes droits");
    _droitMenuItem.setOnAction(this);
   
    _gererDroitMenuItem = new MenuItem("Gerer droits");
    _gererDroitMenuItem.setOnAction(this);

    accountMenu.getItems().addAll(_infosMenuItem, _droitMenuItem, _gererDroitMenuItem);

    menuBar.getMenus().addAll(fileMenu, accountMenu);

    _viewBorderPane.setTop(menuBar);

    _gameBorderPane = getGameBorderPane();
View Full Code Here

TOP

Related Classes of javafx.scene.control.MenuBar

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.