public void setBorderType(String s) {
		if (s == null)
			throw new IllegalArgumentException("border cannot be null");
		type = s;
		if (s.equals(RAISED_BEVEL_BORDER)) {
			border = BorderFactory.createRaisedBevelBorder();
		}
		else if (s.equals(LOWERED_BEVEL_BORDER)) {
			border = BorderFactory.createLoweredBevelBorder();
		}
		else if (s.equals(RAISED_ETCHED_BORDER)) {
			border = BorderFactory.createEtchedBorder(EtchedBorder.RAISED);
		}
		else if (s.equals(LOWERED_ETCHED_BORDER)) {
			border = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);
		}
		else if (s.equals(LINE_BORDER)) {
			border = BorderFactory.createLineBorder(getForeground(), 2);
		}
		else if (s.equals(MATTE_BORDER)) {
			border = BorderFactory.createMatteBorder(2, 2, 2, 2, TILE_ICON);
		}
		else {
			border = null;
		}
	}