Changed exceptions
authorBill Kuker <bkuker@billkuker.com>
Wed, 1 Jul 2009 23:36:00 +0000 (23:36 +0000)
committerBill Kuker <bkuker@billkuker.com>
Wed, 1 Jul 2009 23:36:00 +0000 (23:36 +0000)
src/com/billkuker/rocketry/motorsim/visual/Editor.java

index dd3e828db4192b5d8e8d9652d53d02313d2b8aa7..12aae66f78ec4a74dddbcdf59c114a22a572c269 100644 (file)
@@ -28,9 +28,7 @@ public class Editor extends PropertySheetPanel {
 \r
        private Object obj;\r
 \r
-       public Editor(Object o) throws IntrospectionException,\r
-                       IllegalArgumentException, IllegalAccessException,\r
-                       InvocationTargetException {\r
+       public Editor(Object o) {\r
                obj = o;\r
 \r
                PropertyEditorManager.registerEditor(Amount.class,\r
@@ -38,8 +36,13 @@ public class Editor extends PropertySheetPanel {
 \r
                // Build the list of properties we want it to edit\r
                //final PropertySheetPanel ps = new PropertySheetPanel();\r
-               PropertyDescriptor props[] = Introspector.getBeanInfo(obj.getClass())\r
-                               .getPropertyDescriptors();\r
+               PropertyDescriptor props[];\r
+               try {\r
+                       props = Introspector.getBeanInfo(obj.getClass())\r
+                                       .getPropertyDescriptors();\r
+               } catch (IntrospectionException e) {\r
+                       throw new Error(e);\r
+               }\r
                Vector<PropertyDescriptor> v = new Vector<PropertyDescriptor>();\r
                for (int i = 0; i < props.length; i++) {\r
                        if (props[i].getName().equals("class"))\r