コード例 #1
0
 public void stopShow() {
   try {
     if (jLayer != null) {
       jLayer.stop();
     }
     stopRender();
     running = false;
     enableControls();
   } catch (Throwable ex) {
     errorHandler.handleError(ex);
   }
 }
コード例 #2
0
 public void startShow() {
   try {
     if (project.getFlames().size() == 0) throw new Exception("No flames to animate");
     jLayer.stop();
     if (project.getSoundFilename() != null && project.getSoundFilename().length() > 0) {
       jLayer.play(project.getSoundFilename());
     }
     startRender();
     running = true;
     enableControls();
   } catch (Throwable ex) {
     errorHandler.handleError(ex);
   }
 }