Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javafx.reflect.*;
- import javafx.reflect.FXLocal.*;
- public class TestApp {
- public static void main(String args[]) {
- Context context = FXLocal.getContext();
- FXClassType instance = context.findClass("MainStage");
- ObjectValue obj = (ObjectValue)instance.newInstance();
- TestAppInterface ji = (TestAppInterface)obj.asObject();
- ji.showStage();
- }
- }
Add Comment
Please, Sign In to add comment