Demo.java 715 B

1234567891011121314151617181920212223242526272829
  1. package it.paprojects.materialfx.demo;
  2. import fr.brouillard.oss.cssfx.CSSFX;
  3. import javafx.application.Application;
  4. import javafx.fxml.FXMLLoader;
  5. import javafx.scene.Scene;
  6. import javafx.scene.layout.AnchorPane;
  7. import javafx.stage.Stage;
  8. import java.io.IOException;
  9. public class Demo extends Application {
  10. @Override
  11. public void start(Stage primaryStage) throws IOException {
  12. CSSFX.start();
  13. AnchorPane anchorPane = FXMLLoader.load(MFXResources.load("buttons_demo.fxml"));
  14. primaryStage.setTitle("HELLO THERE");
  15. primaryStage.setScene(new Scene(anchorPane));
  16. primaryStage.show();
  17. }
  18. public static void main(String[] args) {
  19. launch(args);
  20. }
  21. }