Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Paint the text in a progress bar with two colors

800670Nov 25 2010 — edited Nov 25 2010
Hello!

i am wondering how to set the text in a progres bar in two different colors, one color when the progress meter is painted over the text and one color when it is not.

Have a look at this image: http://pluto.ksi.edu/~cyh/ba519/Swing2/images/ProgressBar.gif

As you can see, the value "51" is painted with white color and the "%" sign is painted with the blue color.

How is that possible?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 23 2010
Added on Nov 25 2010
10 comments
284 views