import java.beans.*; public class DateGUIBeanInfo extends SimpleBeanInfo { //------------------------------------------------------------------- // define a single DateGUI property: "date" + own PropEditor //------------------------------------------------------------------- public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor datePD = null; try { datePD = new PropertyDescriptor("date", DateGUI.class); } catch (IntrospectionException badPD) { System.out.println("date PropertyDescriptor faulty."); System.exit(10); } // now associate a property editor purely for the "date" prop datePD.setPropertyEditorClass(DateGUIEditor.class); PropertyDescriptor[] ePDs = {datePD}; return ePDs; } } // End of Class DateGUIBeanInfo