if (backingStore == null || text == null) return;
Graphics g = backingStore.getGraphics();
int width = (int) (((float) current / (float) max) * getSize().width);
g.fill3DRect(0, 0, getSize().width, getSize().height, false);
g.setColor(getBackground());
g.fill3DRect(0, 0, width, getSize().height, true);
g.setColor(getForeground());
g.setXORMode(getBackground());
String percent = "" + (current * 100 / (max > 0?max:1))
+ "% / " + current + " of "+max;
g.drawString(percent,