Image function ( String arg0 ) { return Toolkit . getDefaultToolkit ( ) . getImage ( getClass ( ) . getResource ( arg0 ) ) ; }
helper method to load an image using the bean class getresource method on the beaninfo class using getclass , since you 'll extend this class to get the beaninfo . basically it 's assumed that the bean and its beaninfo are both loaded by the same classloader , generally a reasonable assumption . concode_field_sep PlaceHolder placeHolder concode_field_sep MethodDescriptor[] getMethodDescriptors concode_elem_sep int getDefaultPropertyIndex concode_elem_sep BeanInfo[] getAdditionalBeanInfo concode_elem_sep int getDefaultEventIndex concode_elem_sep EventSetDescriptor[] getEventSetDescriptors concode_elem_sep PropertyDescriptor[] getPropertyDescriptors concode_elem_sep BeanDescriptor getBeanDescriptor concode_elem_sep Image getIcon