/** Stop the slideshow */ public void stopSlideshow() { if (timer != null) { timer.cancel(); timer = null; slideshowRunning = false; } }