@Override // Tell Java that the method overrides one in the superclass/implemented interface
		public void actionPerformed(ActionEvent e) {
			switch (e.getActionCommand()) { // Switch on the label of the button that generated the action
			case "Clear": // If the button was the one that clears the label:
				reset(); // Reset the CubeCalculator
				break; // Leave the switch

			case "Cube": // If the cube button was clicked:
				double cube = Math.pow(Double.parseDouble(numLabel.getText()), 3); // Calculate the cube of the number in the label with the pow method of the Math class

				numLabel.setText(Double.toString(cube)); // Set the text of the number label to the string equivalent of the cube
				break; // Leave the switch

			default: // For the rest of the buttons:
				if (numLabel.getText().equals("0")) { // If the number label doesn't contain any numbers other than 0:
					numLabel.setText(e.getActionCommand()); // Replace the text of the label with the number of the button clicked on
				}

				else { // Otherwise:
					numLabel.setText(numLabel.getText() + e.getActionCommand()); // Set the text of the number label to the current text of the label with the number clicked on appended to it
				}
			}

		}