question: private void overshadowRect ( final Rectangle2D rect , final Graphics2D g ) { Graphics2D g2 = ( Graphics2D ) g . create ( ) ; g2 . setColor ( GRAY_OUT ) ; g2 . fill ( rect ) ; g2 . dispose ( ) ; }
target:  Shadows the given rectangle. Gives a disabled look to the given area.