private void doDrawing(Graphics g)
		{
			Graphics2D g2d = (Graphics2D) g;
			g2d.setColor(Color.red);

			Dimension size = getSize();
			Insets insets = getInsets();

			int w = size.width  - insets.left - insets.right;
			int h = size.height - insets.top  - insets.bottom;
			int middle = w >> 1;
			
			g2d.setColor(Color.BLACK);
			g2d.drawLine(0, h >> 1, w, h >> 1);
			g2d.drawLine(w >> 1, 0, w >> 1, h);
			
			int barLength = 0;
			int barHeight = 0;
			if (max != 0)
			{
				barLength = (int)((double)middle/(double)max * (double)(success < 0 ? -1 * success : success));
				barHeight = h - 11;
			}
				
			if (success > 0)
			{
				g2d.setColor(Color.GREEN);
				g2d.fillRect(middle + 1, 5, barLength, barHeight);
			}
			else if (success < 0)
			{
				g2d.setColor(Color.RED);
				g2d.fillRect(middle - barLength, 5, barLength, barHeight);
			}
			else
			{
				g2d.setColor(Color.BLUE);
				g2d.fillRect(middle -5, 5, 10, barHeight);
			}
		}