0
     UIManager.put("jb.selectionForeground", new ColorUIResource(Color.BLACK));
     UIManager.put("jb.selectionBackground", new ColorUIResource(Color.BLACK));

I tried this method, but its not working.

Bogdan Bogdanov
  • 1,707
  • 2
  • 20
  • 31
Akarsha
  • 29
  • 2
  • 7

1 Answers1

0

You can Easily Set The JProgressBar Text Color Using :-

UIManager.put("ProgressBar.selectionBackground", Color.RED);//Red
UIManager.put("ProgressBar.selectionForeground", Color.GREEN);//Green 
UIManager.put("ProgressBar.background", Color.ORANGE);//Gives Orange
UIManager.put("ProgressBar.foreground", Color.BLUE);//Gives Blue

For More Details Go : How to change JProgressBar color?

Happy to Help !

Community
  • 1
  • 1
Anand Dwivedi
  • 1,452
  • 13
  • 23