@Override public void addNotify() { super.addNotify(); myGlassPane = IdeGlassPaneUtil.find(this); myDisposable = Disposer.newDisposable(); myGlassPane.addMouseMotionPreprocessor(myListener, myDisposable); myGlassPane.addMousePreprocessor(myListener, myDisposable); }
private void init() { myGlassPane = IdeGlassPaneUtil.find(this); myGlassPane.addMouseMotionPreprocessor(myListener, this); myGlassPane.addMousePreprocessor(myListener, this); }