From: Bill Kuker Date: Wed, 1 Jul 2009 23:36:00 +0000 (+0000) Subject: Changed exceptions X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=df952a25b2d8e7e515784407604160f4e2c2736c;p=sw%2Fmotorsim Changed exceptions --- diff --git a/src/com/billkuker/rocketry/motorsim/visual/Editor.java b/src/com/billkuker/rocketry/motorsim/visual/Editor.java index dd3e828..12aae66 100644 --- a/src/com/billkuker/rocketry/motorsim/visual/Editor.java +++ b/src/com/billkuker/rocketry/motorsim/visual/Editor.java @@ -28,9 +28,7 @@ public class Editor extends PropertySheetPanel { private Object obj; - public Editor(Object o) throws IntrospectionException, - IllegalArgumentException, IllegalAccessException, - InvocationTargetException { + public Editor(Object o) { obj = o; PropertyEditorManager.registerEditor(Amount.class, @@ -38,8 +36,13 @@ public class Editor extends PropertySheetPanel { // Build the list of properties we want it to edit //final PropertySheetPanel ps = new PropertySheetPanel(); - PropertyDescriptor props[] = Introspector.getBeanInfo(obj.getClass()) - .getPropertyDescriptors(); + PropertyDescriptor props[]; + try { + props = Introspector.getBeanInfo(obj.getClass()) + .getPropertyDescriptors(); + } catch (IntrospectionException e) { + throw new Error(e); + } Vector v = new Vector(); for (int i = 0; i < props.length; i++) { if (props[i].getName().equals("class"))