示例#1
0
 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();
   }
 }
示例#2
0
  public Frame getFrame() {
    AppFrame appFrame = (AppFrame) getRegisteredObject(Constants.APP_FRAME);
    if (appFrame != null) return appFrame.getFrame();

    return Util.findParentFrame((Container) getRegisteredObject(Constants.APP_PANEL));
  }