r.setNextSlide(s.getSlideText(k+1));
}else{
r.setNextSlide("");
}
/* start rendering */
r.slideChange(-1);
/* wait render thread to render the slide */
while (slideCount > sles.getSlideCount()){
try {
Thread.sleep(200);
} catch (InterruptedException ex) {