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.
I did some java programming withe netbeans 3.2, now i upgraded to 3.3.1 and have some serious problems with the generated code : when i use the gui-editing featue (just open the sourcefile change a value from 1 to 0 and to 1 again => the file was not really changed) and compile, all checkboxes and labels and radiobuttons are no mor visible at runtime, although they are shown in the gui-editor. (see the attached formeditor.png and running.png) i tried j2sdk1.3.1_01, jsdk1.3.1_02,and the new jsdk1.4.0 from sun, always the same problems. i made a cvs-diff with the old (1.5)version and the new compiled version(1.6), see the attached "josi_solar.java.diff.html". the project is opensource, hostet at sourceforge, see http://sourceforge.net/projects/josi-solar/ for the whole sourcecode it seems the code-genaration changed since3.2.? i submitted this to the nbusers-mailinglist, but got no answer i hope this the right place to tell. if not, could you point me to the right one, please? alex
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.