Created
November 26, 2013 11:35
-
-
Save BornRiot/7656982 to your computer and use it in GitHub Desktop.
Second portion of Java Bean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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