public static void adjustToSameSize(Component... comps) {
		Dimension best = new Dimension();
		for (Component comp : comps) {
			Dimension size = comp.getPreferredSize();
			if (size.width > best.width) {
				best.width = size.width;
			}
			if (size.height > best.height) {
				best.height = size.height;
			}
		}
		for (Component comp : comps) {
			setOnlySize(comp, best);
		}
	}