package stickfigure; import java.beans.*; public class StickFigureBeanInfo extends SimpleBeanInfo { // // implement the following method: // public BeanDescriptor getBeanDescriptor() { } public PropertyDescriptor[] getPropertyDescriptors() { try { PropertyDescriptor pd1 = new PropertyDescriptor("mood", StickFigure.class); pd1.setBound(true); pd1.setPropertyEditorClass(MoodEditor.class); PropertyDescriptor pd2 = new PropertyDescriptor("sunburned", StickFigure.class); pd2.setBound(true); return new PropertyDescriptor[] {pd1, pd2}; } catch (Exception e) { return null; } } public java.awt.Image getIcon(int iconKind) { return loadImage("stickfigure.gif"); } }