protected void saveBuffer(){
  StringBuffer sb=m_History.getSelectedBuffer();
  if (sb != null) {
    if (m_SaveOut.save(sb)) {
      JOptionPane.showMessageDialog(this,"File saved","Results",JOptionPane.INFORMATION_MESSAGE);
    }
  }
 else {
    m_SaveOutBut.setEnabled(false);
  }
}

protected void saveBuffer ( ) { StringBuffer sb = m_History . getSelectedBuffer ( ) ; if ( sb != null ) { if ( m_SaveOut . save ( sb ) ) { JOptionPane . showMessageDialog ( this , "File saved" , "Results" , JOptionPane . INFORMATION_MESSAGE ) ; } } else { m_SaveOutBut . setEnabled ( false ) ; } }
save the currently selected result buffer to a file .
