public void runCalculations(
			JRadioButton radioButtonRectangle, 
			JRadioButton radioButtonCircle, 
			JRadioButton radioButtonSquare, 
			JRadioButton radioButtonParallelogram, 
			JRadioButton radioButtonEllipse, 
			JRadioButton radioButtonSector,
			JRadioButton radioButtonTriangle, 
			JRadioButton radioButtonTrapezoid,
			JRadioButton radioButtonRhombus,
			JTextArea txtOutput,
			JTextField txtValue1, 
			JTextField txtValue2, 
			JTextField txtValue3) {
		
		Shapes shapes = new Shapes();
		
		//TODO Make this more efficient....
		
		if (radioButtonRectangle.isSelected()) {
			txtOutput.setText(Float.toString(shapes.calculateRectangle(Float.parseFloat(txtValue1.getText()), Float.parseFloat(txtValue2.getText()))));
		}
		
		if (radioButtonTriangle.isSelected()) {
			txtOutput.setText(Float.toString(shapes.calculateTriangle(Float.parseFloat(txtValue2.getText()), Float.parseFloat(txtValue1.getText()))));
		}
		
		if (radioButtonCircle.isSelected()) {
			txtOutput.setText(Float.toString(shapes.calculateCircle((Float.parseFloat(txtValue1.getText())))));
		}
		
		if (radioButtonSquare.isSelected()) {
			txtOutput.setText(Float.toString(shapes.calculateSquare(Float.parseFloat(txtValue1.getText()))));
		}
		
		if (radioButtonParallelogram.isSelected()) {
			txtOutput.setText(Float.toString(shapes.calculateParallelogram(Float.parseFloat(txtValue2.getText()), Float.parseFloat(txtValue1.getText()))));
		}
		
		if (radioButtonTrapezoid.isSelected()) {
			txtOutput.setText(Float.toString(shapes.calculateTrapezoid(Float.parseFloat(txtValue1.getText()), Float.parseFloat(txtValue2.getText()), Float.parseFloat(txtValue3.getText()))));
		}
		
		if (radioButtonSector.isSelected()) {
			txtOutput.setText(Float.toString(shapes.calculateSector(Float.parseFloat(txtValue1.getText()), Float.parseFloat(txtValue2.getText()))));
		}
		
		if (radioButtonEllipse.isSelected()) {
			txtOutput.setText(Float.toString(shapes.calculateEllipse(Float.parseFloat(txtValue1.getText()), Float.parseFloat(txtValue2.getText()))));
		}
		
		if (radioButtonRhombus.isSelected()) {
			txtOutput.setText(Float.toString(shapes.calculateRhombus(Float.parseFloat(txtValue1.getText()), Float.parseFloat(txtValue2.getText()))));
		}
		
		
		txtValue1.setText("");
		txtValue2.setText("");
		txtValue3.setText("");
	}