Exemple #1
0
 public static void main(final String[] args) {
   new Thread(
           new Runnable() {
             public void run() {
               JAXBHandler.JAXB.getInstance(); // Initializes JAXBContext
             }
           })
       .start();
   GUIHelper.startApplicationWithErrorHandler(
       new Runnable() {
         public void run() {
           Main main = new Main(args, false);
           main.startGUI();
         }
       },
       BUG_REPORTING_TEXT);
 }
Exemple #2
0
  public Main(String[] args, boolean headless) {
    d_headless = headless;

    if (!d_headless) {
      GUIHelper.initializeLookAndFeel();
      UIManager.put("Button.defaultButtonFollowsFocus", Boolean.TRUE);
      ToolTipManager.sharedInstance().setInitialDelay(0);

      GUIFactory.configureJFreeChartLookAndFeel();
    }

    initializeDomain();

    if (args.length > 0) {
      d_curFilename = args[0];
    }
  }
 public String getTypeName() {
   return GUIHelper.humanize(d_type.getSimpleName());
 }