I creating an application which involves login of two types of users. Upon login the application should load the respective UI. I searched on the Internet for a solution , which involves using reflection package. But that is either loading a main class and then invoking a method , else load all classes. I have the code for those two types of users in two different packages and currently i run the app with those packages in already in the working directory(i.e under one project name)
The final logic is that: i have three jars.
- main.jar
- admin.jar
- tchr.jar
main.jar
consists of login ui. after verifying the passwords the app
should load either admin.jar
or tchr.jar
Im using javafx, and i want to use the same "Scene" object for
modification. I used a BorderPane
with top as Menubar
and center as
login. Both admin.jar
and tchr.jar use a GridPane
Upon login i intend
that (suppose user is admin) the BorderPane sets its center the
GridPane
from admin.jar
Its much like how IDE uses its plugins, In Eclipse after downloading a particular plugin the ide automatically recognizes the available plugins and modifies the ui accordingly