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