Exemplo n.º 1
0
  /** {@inheritDoc} */
  @Override
  public void removeNotify() {
    removeMouseListener(this.mouseHandler);
    removeMouseMotionListener(this.mouseHandler);
    removeMouseWheelListener(this.mouseHandler);

    super.removeNotify();
  }
Exemplo n.º 2
0
  /** {@inheritDoc} */
  @Override
  public void addNotify() {
    updateUI();

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

    super.addNotify();
  }