Exemplo n.º 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();
  }
Exemplo n.º 2
0
 /** @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) */
 public void actionPerformed(ActionEvent e) {
   if (UserInterfaceFactory.isAudioUserInterfaceInstanciated()) {
     Conductor aConductor = UserInterfaceFactory.getAudioUserInterface().getActiveRenderer();
     if (aConductor != null) {
       try {
         aConductor.render(Renderer.ALL_PART);
       } catch (RenderingException ex) {
       }
     }
   }
 }