for (int i = 0; i < components.length; i++) { JComponent comp = components[i];
for (JComponent comp : components) {
	private void equalizeControls(JComponent[] components) {		Dimension d;		int minX = 0, minY = 0;		for (int i = 0; i < components.length; i++) {			JComponent comp = components[i];			comp.setMaximumSize(null);			comp.setMinimumSize(null);			comp.setPreferredSize(null);			d = comp.getPreferredSize();			if (d.width > minX)				minX = d.width;			if (d.height > minY)				minY = d.height;		}		d = new Dimension(minX, minY);		for (int i = 0; i < components.length; i++) {			JComponent comp = components[i];			comp.setMinimumSize(d);			comp.setMaximumSize(d);			comp.setPreferredSize(d);		}	}