public void mousePressed(MouseEvent e){
  if (e.getSource() instanceof WFNode) {
    WFNode node=(WFNode)e.getSource();
    if (node.isEditable()) {
      m_draggedNode=node;
      m_draggedStart=SwingUtilities.convertPoint(m_draggedNode,e.getX(),e.getY(),this);
    }
 else {
      m_dragged=false;
      m_draggedNode=null;
      m_draggedStart=null;
    }
  }
}

public void mousePressed ( MouseEvent e ) { if ( e . getSource ( ) instanceof WFNode ) { WFNode node = ( WFNode ) e . getSource ( ) ; if ( node . isEditable ( ) ) { m_draggedNode = node ; m_draggedStart = SwingUtilities . convertPoint ( m_draggedNode , e . getX ( ) , e . getY ( ) , this ) ; } else { m_dragged = false ; m_draggedNode = null ; m_draggedStart = null ; } } }
mouse pressed . initial drag
