@Override
				public void actionPerformed(ActionEvent arg0)
				{
					String txt = ((JTextField) arg0.getSource()).getText();
					try
					{
						int rotation = Integer.parseInt(txt);
						frame.mainPanel2.getSelectedObject().setRotation((float) Math.toRadians(rotation));
					}
					catch (NumberFormatException e)
					{
						((JTextField) arg0.getSource()).setText("" + (int) Math.toDegrees(frame.mainPanel2.getSelectedObject().getRotation()));
					}
				}