public void okButtonActionPerformed(java.awt.event.ActionEvent e)
	{
             try
             {
                if(rotateRadio.isSelected())
                {
                  float degrees = Float.parseFloat(rotateTextField.getText());
                  if(radianRadio.isSelected())
                  {
                    degrees = (float) (degrees*180/(Math.PI));
                  }

                  tool_manager.rotateImage(image_frame, degrees);
                }
                else
                {
                  // Flip
                  if(flipHorizontalCheckbox.isSelected())
                  {
                    tool_manager.flipHorizontal(image_frame, flipVerticalCheckbox.isSelected() );
                  }

                  if(flipVerticalCheckbox.isSelected())
                  {
                    tool_manager.flipVertical(image_frame);
                  }
                }
             }
             catch(Exception e1)
             {
                ///////////////////////////////////
                //// User entered invalid input ///
                ///////////////////////////////////
                rotateTextField.requestFocus();
                rotateTextField.selectAll();
                JIPTAlert.error(this, "Value must be a real number", "Invalid Angle Value","OK");


                return;
             }
             thisWindowClosing(null);
	}