private void followDecoratedComponent ( JLayeredPane layeredPane ) { Point relativeLocationToOwner = anchorLink . getRelativeSlaveLocation ( decoratedComponent . getWidth ( ) , decoratedComponent . getHeight ( ) , getWidth ( ) , getHeight ( ) ) ; updateDecorationPainterUnclippedBounds ( layeredPane , relativeLocationToOwner ) ; updateDecorationPainterClippedBounds ( layeredPane , relativeLocationToOwner ) ; // Repaint decoration if ( layeredPane != null ) { decorationPainter . revalidate ( ) ; decorationPainter . repaint ( ) ; } }
Updates the decoration painter in the specified layered pane .