public void loadMapNumbers(Group root) { Group group = new Group(); group.setLayoutX(600); group.setLayoutY(600); cb = new ChoiceBox(); loadNumberChoiceBox(); Button b1 = new Button("Go"); b1.setLayoutY(25); Gui.Listener.EditorChangeMapListener editorCML = new Gui.Listener.EditorChangeMapListener(); editorCML.setChoiceBox(cb); b1.setOnAction(editorCML); Button b2 = new Button("Delete"); b2.setLayoutY(50); editorCML.setChoiceBox(cb); b1.setOnAction(editorCML); group.getChildren().add(b1); group.getChildren().add(b2); group.getChildren().add(cb); root.getChildren().add(group); }
private void myLayout() { mainDial.setLayoutX(140); mainDial.setLayoutY(140); minutesDial.setLayoutX(100); minutesDial.setLayoutY(100); tenthsDial.setLayoutX(180); tenthsDial.setLayoutY(100); digitalClock.setLayoutX(79); digitalClock.setLayoutY(195); startButton.setLayoutX(223); startButton.setLayoutY(1); Rotate rotateRight = new Rotate(360 / 12); startButton.getTransforms().add(rotateRight); stopButton.setLayoutX(59.5); stopButton.setLayoutY(0); Rotate rotateLeft = new Rotate(-360 / 12); stopButton.getTransforms().add(rotateLeft); }
public void loadEditorButtons(Group root) { Group group = new Group(); group.setLayoutX(730); group.setLayoutY(600); Button b1 = new Button("save"); b1.setId("save"); b1.setOnAction(new EditorSaveToDBListener()); Button b2 = new Button("new Map"); b2.setId("showStage"); EditorNewMapListener enml = new EditorNewMapListener(); enml.setloadMapObjekt(this); b2.setOnAction(enml); b2.setLayoutY(25); group.getChildren().add(b1); group.getChildren().add(b2); root.getChildren().add(group); }