Exemple #1
0
  /**
   * Launch the GUI
   *
   * @param args
   */
  public static void main(String[] args) {
    if (JavaSystem.isJava6OrMore() == false) {
      System.err.println("You must launch this software with Java 1.6 or higher");
      System.exit(1);
    }

    // Load the favorites and historic feeds at startup
    History history = History.getInstance();
    Favorites.getInstance();

    // launch the GUI
    GraphicalUserInterface gui = UserInterfaceFactory.getGraphicalUserInterface();
    // launch the AUI
    AudioUserInterface aui = UserInterfaceFactory.getAudioUserInterface();
    aui.addAUIListener(gui);

    // load last document of the history
    while (!history.isLoaded()) {
      try {
        Thread.sleep(100);
      } catch (InterruptedException e) {
      }
    }
    history.loadCurrent();
  }