Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void run(Runnable treatment) {
- if(treatment == null) throw new IllegalArgumentException("The treatment to perform can not be null");
- if(Platform.isFxApplicationThread()) treatment.run();
- else Platform.runLater(treatment);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement