@Override
    public void paint(Graphics g) {
      if (isPaintParentWhileLoading()) {
        myParent.paint(g);
        paintChildren(g);
      }
      else {
        super.paint(g);
      }
    }
@Override
    public void paint(Graphics g)