question: protected void paintRightTabBorder ( int tabIndex , Graphics g , int x , int y , int w , int h , int btm , int rght , boolean isSelected ) { int tabCount = tabPane . getTabCount ( ) ; int currentRun = getRunForTab ( tabCount , tabIndex ) ; int lastIndex = lastTabInRun ( tabCount , currentRun ) ; int firstIndex = tabRuns [ currentRun ] ; g . translate ( x , y ) ; int bottom = h - 1 ; int right = w - 1 ; g . setColor ( isSelected ? selectHighlight : highlight ) ; g . drawLine ( right - 6 , 1 , right - 1 , 6 ) ; g . drawLine ( 0 , 1 , right - 6 , 1 ) ; g . drawLine ( right - 1 , 6 , right - 1 , bottom - 1 ) ; if ( ! isSelected ) g . drawLine ( 0 , 1 , 0 , bottom - 1 ) ; g . setColor ( darkShadow ) ; g . drawLine ( right - 6 , 0 , right , 6 ) ; g . drawLine ( 0 , 0 , right - 6 , 0 ) ; g . drawLine ( right , 6 , right , bottom ) ; g . drawLine ( 0 , bottom , right , bottom ) ; g . translate ( - x , - y ) ; }
target:  Paint Border of Right Tab. Does not fill triangle