{ paintChildren(g);  System.out.println("XXXXXXXXXXXXXXXXXXXXXXXXXXXX   JViewport -----> paint()");  Container parent = GetHeavy(getParent());  System.out.println("parent = " + parent + ", " + getParent());    Graphics wg = parent.getGraphics();  int x = 0; int y = 0; int w = getWidth(); int h = getHeight();  Rectangle r = new Rectangle(x, y, w, h);  int ox = 0; int oy = 0;  wg.copyArea(r.x, r.y, r.width, r.height, ox, oy);  wg.dispose(); }
{ paintComponent(g); }
    public void paint(Graphics g)    {	paintChildren(g);	System.out.println("XXXXXXXXXXXXXXXXXXXXXXXXXXXX   JViewport -----> paint()");	Container parent = GetHeavy(getParent());		System.out.println("parent = " + parent + ", " + getParent());	//parent.paint();	Graphics wg = parent.getGraphics();		int x = 0;	int y = 0;	int w = getWidth();	int h = getHeight();	Rectangle r = new Rectangle(x, y, w, h);	int ox = 0;	int oy = 0;	wg.copyArea(r.x,		    r.y,		    r.width,		    r.height,		    ox,		    oy);	wg.dispose();    }