question: public void paint ( Graphics2D g ) { for ( int i = 0 ; i < m_nodes . size ( ) ; i ++ ) { WFNode node = m_nodes . get ( i ) ; Rectangle rect = node . getBounds ( ) ; g . setColor ( Color . BLACK ) ; g . drawRect ( rect . x , rect . y , rect . width , rect . height ) ; Graphics2D t = ( Graphics2D ) g . create ( rect . x , rect . y , rect . width , rect . height ) ; node . paint ( t ) ; t . dispose ( ) ; } createLines ( ) ; for ( int i = 0 ; i < m_lines . size ( ) ; i ++ ) { WFLine line = ( WFLine ) m_lines . get ( i ) ; line . paint ( g ) ; } }
target:  Paint Component. Paint Lines directly as not added.