public void render(Graphics g)
    {
        Graphics2D g2 = (Graphics2D) g;
        //System.out.println("" + dValue + " " + value);
        int length = (int)((w - 2 * bW) * dValue);
        g.setColor(Color.BLACK);
        g.fillRect(x, y, w, h);
        g.setColor(barColorB);
        g.fillRect(x + bW, y + bW, w - 2 * bW, h - 2 * bW);
        GradientPaint gp = new GradientPaint(x, y, Color.WHITE, x, y + h - 2 * bW, barColorF, true);
        g2.setPaint(gp);
        g2.fillRect(x + bW, y + bW, length, h - 2 * bW);
    }