try
{
// create a descriptor for the Rate property
PropertyDescriptor pd1 = new PropertyDescriptor("Rate",
TemperatureModifier.class);
// create a descriptor for the Running property
PropertyDescriptor pd2 = new PropertyDescriptor("Running",
TemperatureModifier.class);
// specify the property editor for Running
pd2.setPropertyEditorClass(RunningEditor.class);
// create an array of descriptors and return it to the caller
PropertyDescriptor[] pda = { pd1, pd2 };
return pda;
}
catch (Exception e)
{
return null;
}