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.
Summary: | The components hide | ||
---|---|---|---|
Product: | guibuilder | Reporter: | rafael_br |
Component: | App Framework | Assignee: | issues@guibuilder <issues> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cpbridges |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
rafael_br
2010-11-26 10:59:19 UTC
I'm sorry, I don't understand. Do the components hide only when you run the project, not in designer? Could you attach here a GUI form with tabbed pane / layered pane and describe steps how to reproduce the bug? After getting a sample form from the reporter, it appears to be same problem as bug 82583. Some components in null layout have the height set to -1 in the generated code. I can now reproduce it and so will be able to fix. *** This bug has been marked as a duplicate of bug 82583 *** It appears the preferred width/height is set to -1 if the component is in JLayeredPane. Does not happen in JPanel with null layout. Steps to reproduce (verify): 1) Add JLayeredPane to a form. 2) Add e.g. JButton to the layered pane. 3) Save and close the form, open it again. 4) Add another component to the layered pane. 5) Go to source code - the first button has -1 width and height in the generated setBounds method. Fix: http://hg.netbeans.org/core-main/rev/90391d24f846 Integrated into 'main-golden', will be available in build *201012010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/90391d24f846 User: Tomas Pavek <tpavek@netbeans.org> Log: #192507: ensuring reference component is set to determine preferred size, same way as in null layout support *** Bug 195071 has been marked as a duplicate of this bug. *** |