private void setButtonsWidthAndHeight() {
		Dimension newSize = new Dimension(0, 0);
		Dimension currentSize = new Dimension(0, 0);

		// Get the size of each button and preserve the widest
		for (int x = 0; x < keys.length; x++) {
			currentSize = theButtons[x].getPreferredSize();
			if (currentSize.width > newSize.width) {
				newSize.width = currentSize.width;
			}
		}
		// Set height to width for square buttons
		newSize.height = newSize.width;

		// Set the new preferred size for each button
		for (int x = 0; x < keys.length; x++) {
			theButtons[x].setPreferredSize(newSize);
		}
	}