Guest User

Untitled

a guest
Apr 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import javafx.reflect.*;
  2. import javafx.reflect.FXLocal.*;
  3.  
  4. public class TestApp {
  5. public static void main(String args[]) {
  6. Context context = FXLocal.getContext();
  7. FXClassType instance = context.findClass("MainStage");
  8. ObjectValue obj = (ObjectValue)instance.newInstance();
  9.  
  10. TestAppInterface ji = (TestAppInterface)obj.asObject();
  11.  
  12. ji.showStage();
  13. }
  14. }
Add Comment
Please, Sign In to add comment