1 package testRename;2 3 import java.awt.Image ;4 import java.beans.BeanInfo ;5 import java.beans.IntrospectionException ;6 import java.beans.Introspector ;7 import java.beans.SimpleBeanInfo ;8 import org.openide.loaders.UniFileLoader;9 import org.openide.util.Utilities;10 11 public class MyDataLoaderBeanInfo extends SimpleBeanInfo {12 13 public BeanInfo [] getAdditionalBeanInfo() {14 try {15 return new BeanInfo [] {Introspector.getBeanInfo(UniFileLoader.class)};16 } catch (IntrospectionException e) {17 throw new AssertionError (e);18 }19 }20 21 public Image getIcon(int type) {22 return super.getIcon(type); // TODO add a custom icon here23 24 }25 26 }27