예제 #1
0
  /** {@inheritDoc} */
  @Override
  public void removeNotify() {
    removeMouseListener(this.mouseHandler);
    removeMouseMotionListener(this.mouseHandler);
    removeMouseWheelListener(this.mouseHandler);

    super.removeNotify();
  }
예제 #2
0
  /** {@inheritDoc} */
  @Override
  public void addNotify() {
    updateUI();

    addMouseListener(this.mouseHandler);
    addMouseMotionListener(this.mouseHandler);
    // addMouseWheelListener( this.mouseHandler );

    super.addNotify();
  }