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 - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -