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 21832 - java code generation for checkboxes,labels and radiobuttons buggy?
Summary: java code generation for checkboxes,labels and radiobuttons buggy?
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Tomas Pavek
URL:
Keywords:
: 23783 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-03-23 08:26 UTC by alex poddey
Modified: 2003-06-30 18:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
generated window at runtime (9.56 KB, image/png)
2002-03-23 08:27 UTC, alex poddey
Details
generated window in the netbeans ui-editor (14.18 KB, image/png)
2002-03-23 08:28 UTC, alex poddey
Details
cvs diff bevore/after editing with 3.3.1 (183.91 KB, text/html)
2002-03-23 08:29 UTC, alex poddey
Details
josi_solar.java (63.04 KB, text/plain)
2002-03-27 09:29 UTC, Tomas Pavek
Details
josi_solar.form (88.97 KB, text/plain)
2002-03-27 09:30 UTC, Tomas Pavek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alex poddey 2002-03-23 08:26:05 UTC
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
Comment 1 alex poddey 2002-03-23 08:27:32 UTC
Created attachment 5159 [details]
generated window at runtime
Comment 2 alex poddey 2002-03-23 08:28:18 UTC
Created attachment 5160 [details]
generated window in the netbeans ui-editor
Comment 3 alex poddey 2002-03-23 08:29:10 UTC
Created attachment 5161 [details]
cvs diff bevore/after editing with 3.3.1
Comment 4 Jan Becicka 2002-03-25 09:38:42 UTC
It looks like form module bug.
Comment 5 Tomas Pavek 2002-03-25 11:00:23 UTC
Alex, could you attach the original form made NB 3.2 (java 
and form files)?
Comment 6 Tomas Pavek 2002-03-27 09:29:45 UTC
Created attachment 5202 [details]
josi_solar.java
Comment 7 Tomas Pavek 2002-03-27 09:30:38 UTC
Created attachment 5203 [details]
josi_solar.form
Comment 8 Tomas Pavek 2002-03-27 09:43:29 UTC
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.
Comment 9 Tomas Pavek 2002-03-28 13:53:09 UTC
Fixed in dev trunk.
Comment 10 Tomas Pavek 2002-03-28 14:08:07 UTC
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
Comment 11 alex poddey 2002-04-02 12:52:33 UTC
sorry,
i have been in Easter-holidays.thanks tomas for adding the missing files and solving the problem
alex
Comment 12 Richard Malaschitz 2002-04-03 13:52:09 UTC
Verified in Build 200204030230
Comment 13 Tomas Pavek 2002-04-04 14:38:25 UTC
Integrated in orion_fcs branch.
Comment 14 Tomas Pavek 2002-05-21 15:38:22 UTC
*** Issue 23783 has been marked as a duplicate of this issue. ***
Comment 15 Quality Engineering 2003-06-30 18:30:14 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.