creating BeanInfo objects in NetBeans 6.1 does not work for some objects
Posted
by Coder
on Stack Overflow
See other posts from Stack Overflow
or by Coder
Published on 2010-05-15T16:00:22Z
Indexed on
2010/05/15
16:04 UTC
Read the original article
Hit count: 227
I have recently learned about BeanInfo classes in Java, and have successfully used them to add icons to my custom GUI components which extend swing components such as JTextField, however i have a more specialized GUI component which extends from another one of my GUI components, which then extends from JTextField. Ie. the class hierarchy is of the form "A -> B -> JTextField". I can create a bean info object that works for class B, but when i click on the bean info editor option in netbeans to create a bean info object for class A, nothing happens. Ie. there is no error pop-up and a bean info object is not created. There isn't much difference between class A and B. Both A and B have default no argument constructors and they are very similar to each other. The only thing i can really think of is that A uses generics and B does not.
I would like to create a beaninfo object for class A so that i can add custom icons for that component. Any help would be appreciated. Thanks.
© Stack Overflow or respective owner