Пример #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();
  }