}
@Override
public void paint(Graphics g, JComponent c) {
AbstractButton button = (AbstractButton) c;
GaugeButtonModel model = (GaugeButtonModel) button.getModel();
Dimension size = button.getSize();
boolean isUnpressed = !model.isPressed() || !model.isArmed();
if (isUnpressed && model.isRollover())
paintButtonUnpressed(g, size);
super.paint(g, button);
if(model.isRollover())
paintBorder(g, size);
paintLights(model.lights(), g);
}