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 create a form, JFrame, JPanel but when reopenning this component then NetBeans sets all components with component.setBounds(x,y, -1, -1). This is very annoying because it is in the part of the code that is generated by NetBeans and have to go to an external editor to fix it. Every time afte every save. And I save a lot so it is bugging me for some time now. I appreciate a fix for this.
I think I found what is happening if you pick a component panel, label etc.. and under "Layout Constraint Properties" you pick for width and height "Preferred" then you get setBounds with wrong values (-1, -1) If you manually set values then everything works fine.
*** This issue has been marked as a duplicate of 82583 ***