DI main start

mail@pastecode.io avatar
unknown
plain_text
2 years ago
516 B
4
Indexable
Never
  public void start(Stage Stage) throws IOException {     
        FXMLLoader loader = new FXMLLoader();
        loader.setLocation(Main.class.getResource("/Vista/VentanaCalculadora.fxml"));
        Pane root = (Pane) loader.load();
        Scene scene = new Scene(root);
       
        Stage.setTitle("Calculadora");
        Stage.getIcons().add(new Image(getClass().getResourceAsStream("calculatoricon.png")));
        Stage.setResizable(false);
        Stage.setScene(scene);
        Stage.show();
  }