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.
When opening a form that uses GridBagLayout (or any of the containers on the form uses it), the GridBagConstraints are removed from the protected code blocks. Please see attached files. The files in Before.ZIP are the files that still have the full GridBagConstraints in them. The files in After.ZIP are the files after opening the form. When I open the form, NB tells me that the file needs to be changed (using the asterisk in the window title) and when I save the file the GridBagConstraints are gone. Iwan
Created attachment 670 [details] Files before the GridBagConstraints are removed by NB Dev 132
Created attachment 671 [details] Files after the GridBagConstraints are removed by NB Dev 132
In addition to my initial bug report, the GridBagConstraints do show up correct in the properties editor, which means that the form-file is okay. Also, at design-time the form looks okay, but at runtime the problem with the missing constraints surface. Iwan
Just another addition to my comments: When you open just the .java file (right- click on the node in explorer and select 'Edit', the file is not being changed. So the problem resides in the parsing of the .form and (re-)generation of the code from the form. Iwan
Fixed.
verified in [nb-dev](133)
Only change summary
*** Issue 9916 has been marked as a duplicate of this issue. ***
Resolved for 3.3.x or earlier, no new info since then -> closing.