Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @FXML
- private void searchButton(ActionEvent event) {
- URL fxmlUrl = this.getClass().getClassLoader()
- .getResource("resources/fxml/Search.fxml");
- // Load the FXML document
- VBox root = null;
- try {
- root = FXMLLoader.<VBox> load(fxmlUrl);
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- Scene scene = new Scene(root);
- stage.setScene(scene);
- stage.setTitle("Hello FXML");
- stage.show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement