Skip to content

Instantly share code, notes, and snippets.

@BornRiot
Created November 26, 2013 11:35
Show Gist options
  • Save BornRiot/7656982 to your computer and use it in GitHub Desktop.
Save BornRiot/7656982 to your computer and use it in GitHub Desktop.
Second portion of Java Bean
package sample;
//A Bean information class.
import java.beans.*;
public class ColorsBeanInfo extends SimpleBeanInfo {
public PropertyDescriptor[] getPropertyDescriptors() {
try {
PropertyDescriptor rectangular = new
PropertyDescriptor("rectangular", Colors.class);
PropertyDescriptor pd[] = {rectangular};
return pd;
}
catch(Exception e) {
System.out.println("Exception caught. " + e);
}
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment