How to ignore the 60fps limit in javafx?

Removing the JavaFX Frame Rate Cap You can remove the 60fps JavaFX frame rate cap by setting a system property, e.g., java -Djavafx.animation.fullspeed=true MyApp Which is an undocumented and unsupported setting. Removing the JavaFX frame rate cap may make your application considerably less efficient in terms of resource usage (e.g. a JavaFX application without a … Read more

Launch JavaFX application from another class

Suppose this is our JavaFX class: import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.stage.Stage; public class OKButton extends Application { @Override public void start(Stage stage) { Button btn = new Button(“OK”); Scene scene = new Scene(btn, 200, 250); stage.setTitle(“OK”); stage.setScene(scene);; } } Then we may launch it from another class like this: import javafx.application.Application; … Read more