import java.beans.*; public class IndexedPropBeanBeanInfo extends SimpleBeanInfo { // override SimpleBeanInfo.getPropertyDescriptors() public PropertyDescriptor[] getPropertyDescriptors() { IndexedPropertyDescriptor[] ipd = new IndexedPropertyDescriptor[1]; IndexedPropertyDescriptor indexedPropDesc=null; try { // create IPD, note: we don't have array get/setter indexedPropDesc = new IndexedPropertyDescriptor( "top10Score", IndexedPropBean.class, null, null, "getTop10Score", "setTop10Score" ); } catch (IntrospectionException fatal) { System.err.println("IndexedPropBeanBeanInfo getProps() is flawed!"); System.err.println(fatal); System.exit(10); } // fill array with describing this bean's properties ipd[0] = indexedPropDesc; return ipd; } } // End of Class IndexedPropBeanBeanInfo