NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
carmen_maven
Joined: 22 Dec 2011 Posts: 13
|
Posted: Fri Jun 29, 2012 8:26 pm Post subject: Extend from JavaBeans components |
|
|
Hello:
I have a JavaBean component X that extends from javax.swing.JInternalFrame, and this component contains buttons and panels. I would like to know how can I create a BeanForm component from component X, that contains the same components that has component X. I need that the new BeanForm besides contains the others components can modify them as well in design time. Is this possible?
I saw JavaBeans Objects file types in NetBeans but I'm not sure how to use them...is there any tutorial or sample about this you can recommend?
I can not extends directly from component X because NetBeans says "Error loading component", in the constructor of it I declare:
if(!Beans.isDesignTime()){
initComponents();
}
so this way NetBeans creates the beanForm ok, but it doesn't show the other components that contains the JavaBean.
I'm working with NetBeans 7.0.1.
thanks in advance,
Carmen |
|
| Back to top |
|
 |
carmen_maven
Joined: 22 Dec 2011 Posts: 13
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|