This discussion is archived
0 Replies Latest reply: Nov 30, 2012 7:51 AM by 935199 RSS

Setting a new default UI object as early as possible

935199 Newbie
Currently Being Moderated
Hi everyone!

I've made a custom progress bar UI class that extends BasicProgressBarUI. I know I can change the UI of a progress bar simply by invoking progressBar.setUI(). However, I'm thinking this is a waste of processing time as the environment has already initialized the default UI object.

My question is therefore: how can I as early as possible in an application set some property that makes all progress bars use as a default my own progress bar UI? If I have to create some more classes to do this, this is of course fine.

Thanks for an answer!

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points