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.
[release35 build 200303242350, jdk 1.4.x] GridBagLayout has problems with large JTextFields having weightx set to 0. When the container is too small, all component sizes in the container are screwed. If the GridBag customizer is invoked in such moment, it hangs with 100% CPU (it tries to display the components, but they have enormous width, the computation takes forever). The IDE must be killed from console... Workaround is to set right layout constraints (i.e. weightx to 1). To reproduce, see attached form. Open it and shrink the designer - the JTextField dissappears (the same happens if you execute the form, it's GridBagLayout behavior). Then invoke the GridBag customizer.
Created attachment 9522 [details] sample form - java file
Created attachment 9523 [details] sample form - form file
Fixed. /cvs/form/src/org/netbeans/modules/form/layoutsupport/delegates/GridBagCustomizer.java new revision: 1.12; previous revision: 1.11
Tomas, I'm removing the RELNOTE keyword since this bug has been fixed. Let me know if there is info I should include in the readme anyway.
This has been fixed in trunk only, not in NetBeans 3.5 - so that's why the RELNOTE keyword. There could me some text like the following in readme: GridBag customizer in form editor may occasionally hang if the layout contains JTextArea with long text that needs to be wrapped and its Weight X layout property is set to 0. Workaround is to set Weight X to 1 for text components first.
OK. I just added it. Thanks.
Verified in dev build #200304170100. I see no problems or side effects.
This is a potential showstopper. QA would like the fix to be backported into release35.
Created attachment 10025 [details] context diff
Created attachment 10026 [details] binary patch for release35
Looks really good!!!
QA-check completed - last patch is OK in the last NetBeans 3.5 Beta build. This is my go! for integration.
approved for 3.5
Integrated into 3.5. /cvs/form/src/org/netbeans/modules/form/layoutsupport/delegates/GridBagCustomizer.java new revision: 1.10.2.2; previous revision: 1.10.2.1
Verified in RC1(build 200304282350) of NetBeans3.5
removing RELNOTE keyword