question: public void paintTabbedPaneTabBackground ( SynthContext context , Graphics g , int x , int y , int w , int h , int tabIndex , int orientation ) { if ( orientation == JTabbedPane . LEFT ) { AffineTransform transform = new AffineTransform ( ) ; transform . scale ( - 1 , 1 ) ; transform . rotate ( Math . toRadians ( 90 ) ) ; paintBackground ( context , g , y , x , h , w , transform ) ; } else if ( orientation == JTabbedPane . RIGHT ) { AffineTransform transform = new AffineTransform ( ) ; transform . rotate ( Math . toRadians ( 90 ) ) ; transform . translate ( 0 , - ( x + w ) ) ; paintBackground ( context , g , y , 0 , h , w , transform ) ; } else if ( orientation == JTabbedPane . BOTTOM ) { AffineTransform transform = new AffineTransform ( ) ; transform . translate ( x , y ) ; transform . scale ( 1 , - 1 ) ; transform . translate ( 0 , - h ) ; paintBackground ( context , g , 0 , 0 , w , h , transform ) ; } else { paintBackground ( context , g , x , y , w , h , null ) ; } }
target:  Paints the background of a tab of a tabbed pane. This implementation invokes the method of the same name without the orientation.