@Override
	public void actionPerformed(ActionEvent e)
	{
		if(e.getSource().equals(btnApply))
		{
			bisSaveAll(mainGui.getBoardInfo());
		} else if(e.getSource().equals(btnRevert))
		{
			pnlBIS[jtp.getSelectedIndex()].load(mainGui.getBoardInfo());
		} else if(e.getSource().equals(btnSave))
		{
			if(txtFileName.getText().length()==0)
			{
				JOptionPane.showMessageDialog(this, "Please enter filename to save to","Save Boardinfo",JOptionPane.WARNING_MESSAGE);
			} else {
				BoardInfo bi = mainGui.getBoardInfo();
				bisSaveAll(bi);
				
				BufferedWriter out;
				try {
					out = new BufferedWriter(new FileWriter(txtFileName.getText()));
					out.write(bi.getXml());
					out.close();
				} catch (IOException e1) {
					JOptionPane.showMessageDialog(this, "Error '" + e1.getLocalizedMessage() + '\'' +
							" while trying to save to '" + txtFileName.getText() + '\'', 
							"Boardinfo save failed", JOptionPane.ERROR_MESSAGE);
				}
			}
		} else {
			super.actionPerformed(e);
		}
	}