@SuppressWarnings("deprecation")
	public void actionPerformed(ActionEvent e) {
		if (e.getSource().equals(go)) {
			setCursor(Cursor.WAIT_CURSOR);
			try {
				c = new Competition(htmlField.getText());
				parseHTML(HTMLUtils.getMatchbitHTML(htmlField.getText()), c);
				rankbits = HTMLUtils.getRankbits(HTMLUtils.getRankbitHTML(htmlField.getText()));
			} catch (IOException e1) {
				e1.printStackTrace();
			}
			setCursor(null);
		} else if (e.getSource().equals(findTeam)) {
			if (teamField.getText().equals("")) {
				updateFields(teamSelect.getSelectedItem());
			} else {
				updateFields(teamField.getText().toUpperCase());
			}
		}else if(e.getSource().equals(write)){
			new CSVWriter(new File(System.getProperty("user.dir") + "/saved.csv")).write(c);
		}
	}