java - Slide background color in Apache POI -


i'm having problem using apache poi while generating .pptx file. i'm setting background color each slide this:

xmlslideshow ppt = new xmlslideshow();      for(int = 0; i<10; i++) {         color currentcolor = colors.get(random.nextint(colors.size()))          xslfslide currentslide = ppt.createslide();         currentslide.getbackground().setfillcolor(currentcolor);     } 

but in every single slide background color 1 of last slide. if random colors each slide (blue, black, ...., yellow) slides have background color yellow.

what i'm doing wrong?

hope can me, thank you


Comments

Popular posts from this blog

php - Autoloader issue not returning Class -

C++ Program To Find Smallest and Largest Number In Array -

java - How to put two numbers separated by a space into two different arrays -