List of usage examples for javafx.scene.layout AnchorPane AnchorPane
public AnchorPane()
From source file:pl.baczkowicz.mqttspy.ui.controllers.NewPublicationController.java
public void init() { titleLabel = new Label(pane.getText()); eventBus.subscribe(this, this::onScriptListChange, ScriptListChangeEvent.class, new SimpleRunLaterExecutor(), connection); paneTitle = new AnchorPane(); settingsButton = MqttViewManager.createTitleButtons(this, paneTitle, connectionController); }
From source file:view.FXApplicationController.java
@FXML protected void aboutAction() { Stage stage = new Stage(); AnchorPane addGrid = new AnchorPane(); // Creating FXML Loader FXMLLoader loader = new FXMLLoader(FXStartController.class.getResource("About.fxml")); loader.setController(this); // Try to load fxml file try {/*from ww w .j a v a 2 s. c o m*/ addGrid = loader.load(); } catch (IOException e) { System.err.println("Error during loading About.fxml file!"); } Scene scene = new Scene(addGrid); stage.setResizable(false); stage.setScene(scene); stage.show(); stage.setTitle("About"); }