public void paintBorder ( Component component , Graphics graphics , int x , int y , int width , int height ) { if ( top ) { graphics . fillRect ( x , y , width , thickness ) ; } if ( bottom ) { graphics . fillRect ( x , y + height - thickness , width , thickness ) ; } if ( left ) { graphics . fillRect ( x , y , thickness , height ) ; } if ( right ) { graphics . fillRect ( x + width - thickness , y , thickness , height ) ; } }
Renders borders for the specified component based on the configuration of this border object .