void () { IdeGlassPane pane = find(target); if (myPane != null && myPane != pane) { Disposer.dispose(myPanePainterListeners); } myPane = pane; myPanePainterListeners = Disposer.newDisposable("PanePainterListeners"); Disposer.register(parent, myPanePainterListeners); myPane.addPainter(target, painter, myPanePainterListeners); }