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 86649 - when reopenning a form all components are set to setBounds(x,y, -1, -1)
Summary: when reopenning a form all components are set to setBounds(x,y, -1, -1)
Status: RESOLVED DUPLICATE of bug 82583
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: issues@www
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-06 10:03 UTC by nikoniko
Modified: 2006-10-09 09:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nikoniko 2006-10-06 10:03:10 UTC
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.
Comment 1 nikoniko 2006-10-07 12:40:08 UTC
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.
Comment 2 Jan Stola 2006-10-09 09:58:12 UTC

*** This issue has been marked as a duplicate of 82583 ***