Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MCServerGUIApp extends SingleFrameApplication {
- /**
- * At startup create and show the main frame of the application.
- */
- @Override protected void startup() {
- GUI = new MCServerGUIView(this, Server);
- show(GUI);
- }
- /**
- * This method is to initialize the specified window by injecting resources.
- * Windows shown in our application come fully initialized from the GUI
- * builder, so this additional configuration is not needed.
- */
- @Override protected void configureWindow(java.awt.Window root) {
- }
- /**
- * A convenient static getter for the application instance.
- * @return the instance of MCServerGUIApp
- */
- public static MCServerGUIApp getApplication() {
- return Application.getInstance(MCServerGUIApp.class);
- }
- /**
- * Main method launching the application.
- */
- public static void main(String[] args) {
- new MCServerGUIApp().run(args);
- }
- private void run(String[] args) {
- Server = new MCServerGUIServerModel();
- MainWorker = new MCServerGUIMainWorker();
- launch(MCServerGUIApp.class, args);
- GUI.Server.addObserver(GUI);
- }
- private MCServerGUIView GUI;
- private MCServerGUIServerModel Server;
- private MCServerGUIMainWorker MainWorker;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement