Component parent = awtComponent.getParent(); if (parent != null) parent.repaint(awtComponent.getX(), awtComponent.getY(), awtComponent.getWidth(), awtComponent.getHeight());
  public void hide()  {    if (swingComponent != null)      swingComponent.getJComponent().setVisible(false);  }