public void stopShow() { try { if (jLayer != null) { jLayer.stop(); } stopRender(); running = false; enableControls(); } catch (Throwable ex) { errorHandler.handleError(ex); } }
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); } }