This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 24843

Summary: Make compositing a form of panels easier
Product: guibuilder Reporter: Marcel Maré <mjm>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: Other   
OS: Other   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: example of extending forms

Description Marcel Maré 2002-06-16 16:50:02 UTC
It would be nice if a could easily create a form composed of subclasses of 
JPanels, say MyPanelA, MyPanelB, MyPanelC.
If the user wants to edit 
MyPanel? he would be taken to the definition of MyPanel?
The FAQs are not 
very clear (to me) on this issue. 

TIA
Comment 1 Tomas Pavek 2002-06-17 15:49:06 UTC
Hm, I don't understand what you mean. Anyway, I've created 
a new FAQ item "Creating forms by extending another forms" 
to make things clearer. Could you look at it and then tell 
me what specifically is wrong or missing? Thx
Comment 2 Marcel Maré 2002-06-17 18:06:15 UTC
Sorry for the poor explanation. I would be happy to look at the new faq 
entry, but I can't find it at 
http://www.netbeans.org/ide/support/faqs/gui_editing.html.
Comment 3 Tomas Pavek 2002-06-18 08:43:53 UTC
I guess it takes some time (1 day?) till the new FAQ 
appears on netbeans.org (it is primarily edited for Forte).
Now it is already there:
http://www.netbeans.org/ide/support/faqs/gui_editing.html#F
AQ_17
Comment 4 Marcel Maré 2002-06-20 21:23:16 UTC
Found the FAQ and it is helpful. 

I have succeeded in extending a JPanel 
and using that in a form. This allows encapsulating some functionality of 
the form, instead of the form containing all the controls.
OTOH you do 
have to create events+listeners+handlers. 

Oops found a bug: after 
closing/reopening NB the derived form is no longer visible in the form 
editor, but it is still there (visible in the form component hierarchy)!
Comment 5 Tomas Pavek 2002-06-26 15:09:33 UTC
As for the bug: I cannot see anything like this. Can you 
be more specific? Could you try the forms I'm attaching?
Comment 6 Tomas Pavek 2002-06-26 15:12:59 UTC
Created attachment 6435 [details]
example of extending forms
Comment 7 Marek Grummich 2002-07-22 10:01:21 UTC
Set target milestone to TBD
Comment 8 Marek Grummich 2002-07-22 10:08:19 UTC
Set target milestone to TBD
Comment 9 Tomas Pavek 2003-03-11 15:21:13 UTC
Probably the original request was to have "forms in forms" - to be
able to quickly get to (edit) a form designed separately, then put to
another form.
Comment 10 Tomas Pavek 2005-05-16 16:41:32 UTC
*** Issue 33894 has been marked as a duplicate of this issue. ***