if (moved)
if (moved && isShowing ())
  void setBoundsCallback (int x, int y, int w, int h)  {    if (this.x == x && this.y == y && width == w && height == h)      return;    invalidate();    boolean resized = width != w || height != h;    boolean moved = this.x != x || this.y != y;    this.x = x;    this.y = y;    width = w;    height = h;    if (resized)      {        ComponentEvent ce =          new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED);        getToolkit().getSystemEventQueue().postEvent(ce);      }    if (moved)      {        ComponentEvent ce =          new ComponentEvent(this, ComponentEvent.COMPONENT_MOVED);        getToolkit().getSystemEventQueue().postEvent(ce);      }  }