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; }
public void addLoadTurtleImageHandler(EventHandler e) { myMenuBar.addLoadTurtleImageHandler(e); }
public void addChangeLineColorHandler(EventHandler e) { myMenuBar.addChangeLineColorHandler(e); }
public void addChangeBackgroundHandler(EventHandler e) { myMenuBar.addChangeBackgroundHandler(e); }
public void addAndDisplayTabs() { myBorderPane.setTop(myMenuBar.getPane()); myBorderPane.setCenter(myTabPane); myGroup.getChildren().add(myBorderPane); myStage.setScene(myScene); }
public void setLanguageHandler(EventHandler e) { myMenuBar.addSetLanguageHandler(e); }