private void overshadowRect(final Rectangle2D rect,final Graphics2D g){
  Graphics2D g2=(Graphics2D)g.create();
  g2.setColor(GRAY_OUT);
  g2.fill(rect);
  g2.dispose();
}

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