public Component add(Component comp,boolean rw){
  if (comp instanceof WFLine) {
    m_lines.add((WFLine)comp);
    return comp;
  }
  if (comp instanceof WFNode) {
    m_nodes.add((WFNode)comp);
    comp.addMouseListener(this);
    if (m_readWrite && rw)     comp.addMouseMotionListener(this);
  }
  return super.add(comp);
}

public Component add ( Component comp , boolean rw ) { if ( comp instanceof WFLine ) { m_lines . add ( ( WFLine ) comp ) ; return comp ; } if ( comp instanceof WFNode ) { m_nodes . add ( ( WFNode ) comp ) ; comp . addMouseListener ( this ) ; if ( m_readWrite && rw ) comp . addMouseMotionListener ( this ) ; } return super . add ( comp ) ; }
add component and add mouse listener
