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.
Build 200508021800, jdk1.5.0_04 Steps: - open an attached form - select jTextField2 - use D&D functionality to place jTextField2 so that components have following order: JPanel's edge, suggested gap, 'Prijmeni', suggested gap, jTextField2 => jTextField2 is moved itself close to 'Prijmeni'; suggested gap is missing!!!
Created attachment 23441 [details] FFrame.form
Created attachment 23442 [details] FFrame.java
The layout model is created correctly. The problem is in the GroupLayout itself. It incorrectly calculates size of the preferred padding. I will attach the resulting form (EmptyF). Note that there is a preffered gap before jTextField2. The calculated size of this gap is 0. It should be the preferred padding between jTextField2 and jLabel1, jLabel2 pair. The problem seems to be in SequentialGroup.insertAutopadding() method. It looks for next autopadding (using getNextAutopadding() method) when it finds some sources for a padding. Unfortunately the method getNextAutopadding() is not able to find the correct padding in this case.
Created attachment 23487 [details] Form file showing the incorrect calculation of padding size.
Created attachment 23488 [details] Java file showing the incorrect calculation of padding size.
Fixed.
Seems to be fixed in the build 200510241800