From df952a25b2d8e7e515784407604160f4e2c2736c Mon Sep 17 00:00:00 2001 From: Bill Kuker Date: Wed, 1 Jul 2009 23:36:00 +0000 Subject: [PATCH] Changed exceptions --- .../billkuker/rocketry/motorsim/visual/Editor.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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")) -- 2.47.2