protected void loadHistory(boolean set){
  BufferedInputStream str;
  File file;
  int width;
  int height;
  try {
    file=new File(getHistoryFilename());
    if (file.exists()) {
      str=new BufferedInputStream(new FileInputStream(getHistoryFilename()));
      m_History.load(str);
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  if (set) {
    m_ConnectionPanel.setHistory(stringToModel(m_History.getProperty(ConnectionPanel.HISTORY_NAME,"")));
    m_QueryPanel.setHistory(stringToModel(m_History.getProperty(QueryPanel.HISTORY_NAME,"")));
    m_QueryPanel.setMaxRows(Integer.parseInt(m_History.getProperty(QueryPanel.MAX_ROWS,"100")));
    width=Integer.parseInt(m_History.getProperty(WIDTH,"0"));
    height=Integer.parseInt(m_History.getProperty(HEIGHT,"0"));
    if ((width != 0) && (height != 0)) {
      setPreferredSize(new Dimension(width,height));
    }
  }
}

protected void loadHistory ( boolean set ) { BufferedInputStream str ; File file ; int width ; int height ; try { file = new File ( getHistoryFilename ( ) ) ; if ( file . exists ( ) ) { str = new BufferedInputStream ( new FileInputStream ( getHistoryFilename ( ) ) ) ; m_History . load ( str ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } if ( set ) { m_ConnectionPanel . setHistory ( stringToModel ( m_History . getProperty ( ConnectionPanel . HISTORY_NAME , "" ) ) ) ; m_QueryPanel . setHistory ( stringToModel ( m_History . getProperty ( QueryPanel . HISTORY_NAME , "" ) ) ) ; m_QueryPanel . setMaxRows ( Integer . parseInt ( m_History . getProperty ( QueryPanel . MAX_ROWS , "100" ) ) ) ; width = Integer . parseInt ( m_History . getProperty ( WIDTH , "0" ) ) ; height = Integer . parseInt ( m_History . getProperty ( HEIGHT , "0" ) ) ; if ( ( width != 0 ) && ( height != 0 ) ) { setPreferredSize ( new Dimension ( width , height ) ) ; } } }
loads the history properties of the sqlviewer in the user ' s home directory .
