/* * Application.java * * Created on 2.2.2009 * */ package netukar.tinybrowser; import netukar.tinybrowser.ui.MainWindow; /** * Application instance storing a reference to the main window. * * @author Radovan Netuka * @version 1.0 */ public class Application { /** instance of the main application window */ private static final MainWindow mainWindow = new MainWindow(); /** private constructor - blocks creating instances */ private Application() { } /** * Returns the main window of the application. * * @return main application window */ public static MainWindow getMainWindow() { return mainWindow; } /** * Runs the application by displaying the main window. */ public static void run() { mainWindow.pack(); mainWindow.setVisible(true); } }