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: | java code generation for checkboxes,labels and radiobuttons buggy? | ||
---|---|---|---|
Product: | guibuilder | Reporter: | alex poddey <alexatnetbeans> |
Component: | Code | Assignee: | Tomas Pavek <tpavek> |
Status: | CLOSED FIXED | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
generated window at runtime
generated window in the netbeans ui-editor cvs diff bevore/after editing with 3.3.1 josi_solar.java josi_solar.form |
Description
alex poddey
2002-03-23 08:26:05 UTC
Created attachment 5159 [details]
generated window at runtime
Created attachment 5160 [details]
generated window in the netbeans ui-editor
Created attachment 5161 [details]
cvs diff bevore/after editing with 3.3.1
It looks like form module bug. Alex, could you attach the original form made NB 3.2 (java and form files)? Created attachment 5202 [details]
josi_solar.java
Created attachment 5203 [details]
josi_solar.form
Really ugly bug - after loading form with null layout, preferred sizes of components are generated as -1. A workaround is to set AbsoluteLayout instead of null layout, or to set the size of components explicitly. Fixed in dev trunk. The integrated fix ensures that before the code is generated for component in null layout, the constraints metaobject is given with a reference component (from which it gets the preferred size - instead of -1). diff: http://www.netbeans.org/source/browse/form/src/org/netbeans /modules/form/layoutsupport/delegates/NullLayoutSupport.jav a.diff?r1=1.6&r2=1.7 sorry, i have been in Easter-holidays.thanks tomas for adding the missing files and solving the problem alex Verified in Build 200204030230 Integrated in orion_fcs branch. *** Issue 23783 has been marked as a duplicate of this issue. *** Resolved for 3.3.x or earlier, no new info since then -> closing. |