if (trimmedLabels.length == 1) { trimmedLabels = new String[0]; } else { String[] tempTrimmed = new String[trimmedLabels.length - 1]; System.arraycopy(trimmedLabels, 0, tempTrimmed, 0, index); System.arraycopy(trimmedLabels, index +1, tempTrimmed, index, trimmedLabels.length - index -1); trimmedLabels = tempTrimmed; }
void removeColumn(TableColumn column) {	Vector data = getDataLabels();	Vector images = getImages();	String stringData[];	Image imageData[];	int index = column.getIndex();	if (index < data.size()) {		data.removeElementAt(index);		stringData = new String[data.size()];		data.copyInto(stringData);		setText(stringData);	}	if (index < images.size()) {		images.removeElementAt(index);		imageData = new Image[images.size()];		images.copyInto(imageData);		setImage(imageData);	}}