if (fm.stringWidth(iconName) > UnitOverview.ICON_NAME_MAX_LENGTH) { Vector v = StringUtil.splitString(iconName, " "); iconName = (String) v.elementAt(0); }
if (fm.stringWidth(iconName) > Entity.ICON_NAME_MAX_LENGTH) { Vector v = StringUtil.splitString(iconName, " "); iconName = (String) v.elementAt(0); }
	public void generateIconName(FontMetrics fm) {		iconName = getShortName();				if (fm.stringWidth(iconName) > UnitOverview.ICON_NAME_MAX_LENGTH) {			Vector v = StringUtil.splitString(iconName, " ");			iconName = (String) v.elementAt(0);		}				while (fm.stringWidth(iconName) > UnitOverview.ICON_NAME_MAX_LENGTH) {			iconName = iconName.substring(0, iconName.length() - 1);		}	}