Skip to content

Instantly share code, notes, and snippets.

@mambax
Created June 11, 2015 18:15
Show Gist options
  • Save mambax/cfdeb2ed0313946c8624 to your computer and use it in GitHub Desktop.
Save mambax/cfdeb2ed0313946c8624 to your computer and use it in GitHub Desktop.
@Override public void start(Stage primaryStage) throws Exception {
try {
URL url = getClass().getResource("Application.fxml");
FXMLLoader loader = new FXMLLoader(url);
loader.impl_setStaticLoad(true);
Parent p = loader.<Parent>load();
stackPane.getChildren().add(p);
Scene scene = new Scene(stackPane, 400, 400, Color.GRAY);
primaryStage.setTitle("JavaFX SimpleHeatMap Demo");
primaryStage.setScene(scene);
primaryStage.show();
} catch (IOException exception) {
throw new RuntimeException(exception);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment