MainApp.java 697 B

1234567891011121314151617181920212223242526
  1. package com.persagy.dptool;
  2. import javafx.application.Application;
  3. import javafx.fxml.FXMLLoader;
  4. import javafx.scene.Parent;
  5. import javafx.scene.Scene;
  6. import javafx.stage.Stage;
  7. import java.io.IOException;
  8. import java.io.InputStream;
  9. public class MainApp extends Application {
  10. public static void main(String[] args) {
  11. launch(args);
  12. }
  13. @Override
  14. public void start(Stage primaryStage) throws IOException {
  15. InputStream is = MainApp.class.getResourceAsStream("primary.fxml");
  16. Parent root = new FXMLLoader().load(is);
  17. primaryStage.setTitle("data-platform-tool");
  18. primaryStage.setScene(new Scene(root));
  19. primaryStage.show();
  20. }
  21. }