public static void main(String[] args) {
    ClassicEngineBoot.getInstance().start();

    DrillDownProfileEditor editor = new DrillDownProfileEditor();
    editor.pack();
    LibSwingUtil.centerFrameOnScreen(editor);
    editor.setVisible(true);
  }
  public static void main(final String[] args) {
    ClassicEngineBoot.getInstance().start();

    final SimpleBarcodesXMLDemo XMLDemoHandler = new SimpleBarcodesXMLDemo();
    final SimpleDemoFrame frame = new SimpleDemoFrame(XMLDemoHandler);
    frame.init();
    frame.pack();
    LibSwingUtil.centerFrameOnScreen(frame);
    frame.setVisible(true);
  }
Exemplo n.º 3
0
  public static void main(String[] args) {
    ClassicEngineBoot.getInstance().start();

    final DefaultDemoSelector demoSelector = createDemoInfo();

    final LayoutDemo frame = new LayoutDemo(demoSelector);
    frame.pack();
    LibSwingUtil.centerFrameOnScreen(frame);
    frame.setVisible(true);
  }
Exemplo n.º 4
0
    public void run() {
      try {
        final ReportDesignerFrame frame = new ReportDesignerFrame();
        ReportDesigner.reportDesignerFrame = frame;
        frame.pack();

        final Rectangle bounds = WorkspaceSettings.getInstance().getBounds();
        if (bounds == null || LibSwingUtil.safeRestoreWindow(frame, bounds) == false) {
          LibSwingUtil.centerFrameOnScreen(frame);
          frame.setExtendedState(Frame.MAXIMIZED_BOTH);
        }
        frame.initWindowLocations(files);
        frame.setVisible(true);
      } catch (Exception t) {
        if (splashScreen != null) {
          splashScreen.dispose();
        }
        UncaughtExceptionsModel.getInstance().addException(t);
        final ExceptionDialog dialog = new ExceptionDialog();
        dialog.setModal(true);
        dialog.showDialog();
        System.exit(-1);
      }
    }