NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Extend from JavaBeans components

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
carmen_maven



Joined: 22 Dec 2011
Posts: 13

PostPosted: Fri Jun 29, 2012 8:26 pm    Post subject: Extend from JavaBeans components Reply with quote

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

PostPosted: Mon Jul 02, 2012 4:41 pm    Post subject: Reply with quote

Hi,

I found someething here,
http://netbeans-org.1045718.n5.nabble.com/Why-the-controls-in-extended-form-can-not-be-modified-td2913640.html

that says it can't be done, that you can not modify subcomponents from an extended bean form, this link is from year 2007, is it possible that NetBeans has included something for this? I know that exists a Customizer file type for JavaBeans but i tried to used and my NewExtendedForm doesn't show (in Designer pane) the subcomponents that I have in MyBeanForm..

NetBeans says about Customizer: "Creates a Customizer panel for a JavaBeans component. The customizer can then be used during design time in the IDE to configure the bean."

Is a way to accomplish this or the answer is the same of year 2007?

I also found these:
http://wiki.netbeans.org/FaqFormExtendingForms
http://wiki.netbeans.org/FaqFormCustomContainerBean

but the result is negative..

cheers,
Carmen
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo