DI main start

 avatar
unknown
plain_text
3 years ago
516 B
7
Indexable
  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();
  }
Editor is loading...