I am using JProgressBar component along with the Nimbus UI Defaults. The problem is that When I want to manually change each progressbar's Bar color, I use BasicProgressBarUI by setting JProgressBar.setUI() function. This makes more trouble because I would like to just change the bar color and it seems that I loose the default look of the jprogressbar (Border, backgroundcolor dissappears).
So I can set UIDefaults of Nimbus ProgressBar when the code initializes. It works.
But I want to change each progressbar's bar color dynamically.
Is there any other way of changing Bar color of JProgressBar?