public static void main(String[] args) { try { AppFrame frame = new AppFrame(); frame.setTitle(APP_NAME); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } }
public Frame getFrame() { AppFrame appFrame = (AppFrame) getRegisteredObject(Constants.APP_FRAME); if (appFrame != null) return appFrame.getFrame(); return Util.findParentFrame((Container) getRegisteredObject(Constants.APP_PANEL)); }