ObjectInputStream ois = new ObjectInputStream(fis); defToolBar = (ArrayList) ois.readObject();
LineNumberReader lnr = new LineNumberReader(new InputStreamReader(fis)); String line = lnr.readLine(); while (line != null) { Action action = ActionsList.getAction(line, mainFrame); defToolBar.add(action); line = lnr.readLine(); }
	public void loadToolBar() {		FileInputStream fis = null;		try {			fis =new FileInputStream(System.getProperty("user.home") + "/.BoTtoolBar");			ObjectInputStream ois = new ObjectInputStream(fis);			defToolBar = (ArrayList) ois.readObject();		} catch (Exception e) {			setDefaultToolBar();		}	}