예제 #1
0
 private SlogoMenuBar makeMenuBar() {
   SlogoMenuBar menuBar = new SlogoMenuBar();
   menuBar.getPane().setLayoutX(0);
   menuBar.getPane().setLayoutY(0);
   menuBar.getPane().setPrefHeight(MENUBAR_HEIGHT);
   menuBar.getPane().setPrefWidth(0);
   menuBar.getMenuBar().prefWidthProperty().bind(myStage.widthProperty());
   return menuBar;
 }
예제 #2
0
 public void addAndDisplayTabs() {
   myBorderPane.setTop(myMenuBar.getPane());
   myBorderPane.setCenter(myTabPane);
   myGroup.getChildren().add(myBorderPane);
   myStage.setScene(myScene);
 }