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