Custom Painter on JProgressBar
I'm attempting to change the colour of Progress Bars in my current Swing L&F (I'm using Nimbus at the moment) by using a custom Painter object, but when created these Progress Bars sometimes stick with their original colouring (this change seems to occur randomly). I'm probably missing something simple but I'm stumped, Painter object (and it's invocation below)... import javax.swing.Painter; import java.awt.*; public class ProgressPainter implements Painter { private Color light, dark; private GradientPaint gradPaint; public ProgressPainter(Color light, Color dark) { this.light = light; this