示例#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();
  }