public int showDialog(){
  m_Result=CANCEL_OPTION;
  setVisible(true);
  return m_Result;
}

public int showDialog ( ) { m_Result = CANCEL_OPTION ; setVisible ( true ) ; return m_Result ; }
pops up the modal dialog and waits for cancel or a selection .
