question: protected void paintComponent ( Graphics g ) { backgroundPainter . paint ( g , getVisibleRect ( ) ) ; TextUI ui = getUI ( ) ; if ( ui != null ) { Graphics scratchGraphics = g . create ( ) ; try { ui . update ( scratchGraphics , this ) ; } finally { scratchGraphics . dispose ( ) ; } } }
target:  Paints the text area.