public void setVisible(boolean aFlag) {   super.setVisible(aFlag); if (getParent() != null) { Rectangle dims = getBounds(); getParent().repaint((int)dims.getX(), (int)dims.getY(), (int)dims.getWidth(), (int)dims.getHeight()); } }
public void setVisible(boolean v) { super.setVisible(v); revalidate(); repaint(); }
	public void setVisible(boolean aFlag)	{		//    Makes the component visible or invisible.		super.setVisible(aFlag);		if (getParent() != null)		{			Rectangle dims = getBounds();			getParent().repaint((int)dims.getX(),			                    (int)dims.getY(),			                    (int)dims.getWidth(),			                    (int)dims.getHeight());		}	}