DI main start

Anonymous
plain_text
02/07/2022 7:55 PM
688 B
23
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...