public final void deactivate() { preDeactivate(); tgPanel.removeMouseListener(ml); tgPanel.removeMouseMotionListener(mml); super.deactivate(); // To activate parentUI from TGUserInterface }
public final void activate() { preActivate(); tgPanel.addMouseListener(ml); tgPanel.addMouseMotionListener(mml); mouseWasDragged = false; }