a simple Java-FX Application which Simulate the Approximation of Pi https://nextn.xyz
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
656 B

  1. package montecarlopi;
  2. import javafx.application.Application;
  3. import javafx.scene.Scene;
  4. import javafx.scene.layout.Pane;
  5. import javafx.stage.Stage;
  6. public class MontecarloPi extends Application {
  7. @Override
  8. public void start(Stage primaryStage) {
  9. Controller c = new Controller();
  10. Pane p = c.getView().getPane();
  11. Scene scene = new Scene(p, 680, 400);
  12. primaryStage.setTitle("Calculation of Pi");
  13. primaryStage.setScene(scene);
  14. primaryStage.setResizable(false);
  15. primaryStage.show();
  16. }
  17. public static void main(String[] args) {
  18. launch(args);
  19. }
  20. }