I have a JProgressBar and it comes out in orange, I have tried to change the color with this but it has not given results:
UIManager.put("progresoIP.background", Color.BLUE);
UIManager.put("progresoIP.foreground", Color.BLUE);
UIManager.put("progresoIP.selectionBackground", Color.BLUE);
UIManager.put("progresoIP.selectionForeground", Color.BLUE);
and with this:
progresoIP.setForeground(Color.blue);
progresoIP.setBackground(Color.blue);
positioned underinitComponents();
A good approach, if you don't write your own
painter
, is to make use ofnimbusOrange
, which makes it possible to override the properties of all Swing components under the LAF Nimbus; It is a solution, in my opinion, quite fast.Below a little snippet :
This code that is
void main()
remove itThis code removes it:
With this, it is set to the
LookandFeel
default of Windows and with this you can change it with the instructions of:And with this pull.