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); }
  void setBoundsCallback (int x, int y, int w, int h)  {    if (this.x == x && this.y == y && width == w && height == h)      return;    invalidate();    this.x = x;    this.y = y;    width = w;    height = h;  }