I have a JProgressBar drawn on a JPanel to show a static value. I can get everything working fine apart from one thing, the colour. If I use
ProgressBarServ1.setForeground(Color.red);
ProgressBarServ1.setBackground(Color.blue);
then I get a red, or any colour I pick, percentage number in the progress bar (that's ok) but I don't get a blue bar. I always get a mid brown/bronze colour.
I've had a good look through google and there doesn't seem to be a good answer.
The duplicate you point to doesn't actually give an answer, just discussion!
Martin.