The color of progress bars are determined by the operating system.
Under most conditions in Windows environments, the progress bar will be green. Using the setState(int state)
command will change the "state" of the progress bar, which under some systems will also change the color - in Windows 7, paused results in yellow and error results in red. These statuses have other meaningful connotations, however, and it could be confusing to a user to use them simply for the stylistic reasoning of color. In the general sense, you should consider the color unchangable.