Graphics g2 = g; Image im = null; Rectangle r = getBounds ();   if (use_double_buffer) { im = createImage (r.width, r.height); g2 = im.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); }  paintBorder(g2); paintComponent(g2); paintChildren(g2);
	public void paint(Graphics g)	{		//	System.out.println("SWING_PAINT:" + this);		paintBorder(g);		paintComponent(g);		paintChildren(g);	}