public void setTool(int tool) {
		tp.setTool(tool);
		if(tool == 0) {
			pencil.setSelected(true);
		} else if(tool == 1) {
			fill.setSelected(true);
		} else if(tool == 2) {
			chooser.setSelected(true);
		} else if(tool == 3) {
			line.setSelected(true);
		}
		curTool = tool;
	}