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 2244

Summary: Adding JInternalFrame into JDesktopPane doesn`t work
Product: guibuilder Reporter: Jan Palka <janpalka>
Component: CodeAssignee: _ ttran <ttran>
Status: CLOSED WORKSFORME    
Severity: major    
Priority: P1    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jan Palka 1999-06-17 23:43:12 UTC
I want to create a `MDI-like` Java-Applikation.
For that I started with a JFrame, inserted a JPanelDesktop and
in that Desktop I inserted a JInternalFrame. But then the JInternalFrame
just disappears. It is in the `Property-window` but I can`t access it in
the Formeditor. (If I insert the JInternalFrame right in the JFrame it`s
there, but I understand that you have to insert a JInternalFrame in a
JPanelDesktop).


[BAT]  Wrong code is generated. Also the source couldn`t be  compiled::
jInternalFrame1.getContentPane ()setLayout (new java.awt.CardLayout ());


I installed NB3.0, but found to my dismay that the bug with InternalFrames has reappeared. It is impossible to add any objects to the form. This bug was also present in NB2.1, and I was hoping that yo
u would have fixed it in NB3.0 (it wasn`t there in Gandalf). For someone who wants to write an MDI application, it is really quite impossible!

[BAT] tested with Form modul 0.9.1 and still fails

[IAN] I cannot help myself, it works. I create a JFrame Form, add a JDesktopPane there and add JInternalFrame to it. Correct code is generated.
Comment 1 Jan Stola 2000-07-27 17:54:59 UTC
Bug assigned to the module owner.