question: private void paintBackgroundSolid ( Graphics2D g , JComponent c , int x , int y , int width , int height ) { Color color = c . getBackground ( ) ; if ( type == CommonControlState . DISABLED ) { color = new Color ( color . getRed ( ) , color . getGreen ( ) , color . getBlue ( ) , 0x80 ) ; } Shape s = shapeGenerator . createRoundRectangle ( x - 2 , y - 2 , width + 4 , height + 4 , CornerSize . BORDER ) ; g . setPaint ( color ) ; g . fill ( s ) ; if ( isPaintLineSeperators ( c ) ) { paintLineSeparator ( g , c , width , height ) ; } }
target:  Paint the background of an uneditable control, e.g. a JLabel.