Package javafx.fxml

Examples of javafx.fxml.FXMLLoader


  public void setMainApp(JBot mainApp) {
    this.mainApp = mainApp;
  }
 
  public void help() throws IOException {
    FXMLLoader loader = new FXMLLoader(
        JBot.class.getResource("Help.fxml"));
    AnchorPane helpDialog = (AnchorPane) loader.load();
    Stage stage = new Stage();
    stage.initStyle(StageStyle.UTILITY);
    Scene scene = new Scene(helpDialog);
    stage.setScene(scene);
    stage.show();
View Full Code Here


    stage.setScene(scene);
    stage.show();
  }
 
  public void pickuper() throws IOException {
    FXMLLoader loader = new FXMLLoader(
        JBot.class.getResource("Pickuper.fxml"));
    AnchorPane aPane = (AnchorPane) loader.load();
    Stage stage = new Stage();
    stage.initStyle(StageStyle.DECORATED);
    Scene scene = new Scene(aPane);
    stage.setScene(scene);
    stage.show();
View Full Code Here

    stage.setScene(scene);
    stage.show();
  }
 
  public void fisher() throws IOException {
    FXMLLoader loader = new FXMLLoader(
        JBot.class.getResource("Fisher.fxml"));
    AnchorPane aPane = (AnchorPane) loader.load();
    Stage stage = new Stage();
    stage.initStyle(StageStyle.DECORATED);
    Scene scene = new Scene(aPane);
    stage.setScene(scene);
    stage.show();
View Full Code Here

      e.printStackTrace();
    }
  }

  public void selectLeftHand() throws IOException, AWTException {
    FXMLLoader loader = new FXMLLoader(
        JBot.class.getResource("Select.fxml"));
    AnchorPane selectDialog = (AnchorPane) loader.load();
    final Stage stage = new Stage();
    stage.initStyle(StageStyle.TRANSPARENT);
    Scene scene = new Scene(selectDialog);
    stage.setScene(scene);
    stage.setOpacity(0.1);
View Full Code Here

      }
    });
  }

  public void selectBlanks() throws IOException, AWTException {
    FXMLLoader loader = new FXMLLoader(
        JBot.class.getResource("Select.fxml"));
    AnchorPane selectDialog = (AnchorPane) loader.load();
    final Stage stage = new Stage();
    stage.initStyle(StageStyle.TRANSPARENT);
    Scene scene = new Scene(selectDialog);
    stage.setScene(scene);
    stage.setOpacity(0.1);
View Full Code Here

    foodDelay = Integer.parseInt(prop.getProperty("foodDelay"));
    delay.setText(prop.getProperty("foodDelay"));
  }
 
  public void select() throws IOException {
    FXMLLoader loader = new FXMLLoader(
        JBot.class.getResource("Select.fxml"));
    AnchorPane selectDialog = (AnchorPane) loader.load();
    final Stage stage = new Stage();
    stage.initStyle(StageStyle.TRANSPARENT);
    Scene scene = new Scene(selectDialog);
    stage.setScene(scene);
    stage.setOpacity(0.1);
View Full Code Here

  @FXML
  private void initialize() {
  }

  public void runemaker() throws IOException {
    FXMLLoader loader = new FXMLLoader(
        JBot.class.getResource("Runemaker.fxml"));
    pane = (AnchorPane) loader.load();
    final Stage stage = new Stage();
    stage.initStyle(StageStyle.DECORATED);
    Scene scene = new Scene(pane);
    stage.setScene(scene);
    stage.show();
View Full Code Here

    stage.setScene(scene);
    stage.show();
  }
 
  public void foodEater() throws IOException {
    FXMLLoader loader = new FXMLLoader(
        JBot.class.getResource("Eater.fxml"));
    AnchorPane pane = (AnchorPane) loader.load();
    final Stage stage = new Stage();
    stage.initStyle(StageStyle.DECORATED);
    Scene scene = new Scene(pane);
    stage.setScene(scene);
    stage.show();
View Full Code Here

  public void setMainApp(JBot mainApp) {
    this.mainApp = mainApp;
  }
 
  public void help() throws IOException {
    FXMLLoader loader = new FXMLLoader(
        JBot.class.getResource("Help.fxml"));
    AnchorPane helpDialog = (AnchorPane) loader.load();
    Stage stage = new Stage();
    stage.initStyle(StageStyle.UTILITY);
    Scene scene = new Scene(helpDialog);
    stage.setScene(scene);
    stage.show();
View Full Code Here

    stage.setScene(scene);
    stage.show();
  }
 
  public void pickuper() throws IOException {
    FXMLLoader loader = new FXMLLoader(
        JBot.class.getResource("Pickuper.fxml"));
    AnchorPane aPane = (AnchorPane) loader.load();
    Stage stage = new Stage();
    stage.initStyle(StageStyle.DECORATED);
    Scene scene = new Scene(aPane);
    stage.setScene(scene);
    stage.show();
View Full Code Here

TOP

Related Classes of javafx.fxml.FXMLLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.