I have a JProgressBar in my java code and I want to change the color of its "string painted" (string which shows percentage on JProgressBar), so Is there any way in java to change the color of the "string painted" of JProgressBar???
Asked
Active
Viewed 937 times
0
-
http://stackoverflow.com/q/10773978/2427291 – PrR3 Aug 19 '14 at 12:30
1 Answers
3
UIManager.put("ProgressBar.background", Color.orange);
UIManager.put("ProgressBar.foreground", Color.blue);
UIManager.put("ProgressBar.selectionBackground", Color.red);
UIManager.put("ProgressBar.selectionForeground", Color.green);

Deutro
- 3,113
- 4
- 18
- 26