/** * Stop the timeline if it is running. * * @param recordState true is you want this object to record the previous play state */ public void stopTimeLine(boolean recordState) { if (recordState) { wasMoviePlaying = true; } oTimeLinePanel.stop(); }