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 134794 - Problem im managing positioning of components in Swing designer
Summary: Problem im managing positioning of components in Swing designer
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-10 04:09 UTC by dennyschuster
Modified: 2008-05-27 10:24 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 dennyschuster 2008-05-10 04:09:40 UTC
I just downloaded v6.1 today and I have to say that I was disappointed in the GUI designer because I couldn't place 
simple label and text field components on the form and have them stay in place while I did final positioning.  I gave 
up in total frustration.  I started by doing the GUI tutorial using Number Addition.  The tutorial worked just fine and 
I was quite pleased.  Then, while looking at the component palette, I thought that it would be interesting to add eight 
label and test fields, in 2 columns, to the bottom of the tutorial form to demonstrate the different border renderings 
on a text field.  What a disaster...

1.  It would not let me double click on the label components in order to change the label test, which would have been 
one label for each of the eight border types.  I got around it by copying one of the labels created in the turorial and 
pasted it 8 times.  That allowed me to then change the names.

2.  Then I selected text field and attempted to add it to the right of the labels that I just made.  I was able to add 
8 text fields ok, but I ran into nothing but frustration as I tried to align them to the right of their respective 
lables.  As I moved 1, the whole screen would shift and I would have labels and text fields all over the place.  The 
more I positioned them, the wider the form became, forcing significant use of the horizontal scroll bars just to find 
them.  

I don't see that my little experiment is necessarily unusual for a GUI form and was greatly displeased with the result 
that I experienced. After spending over an hour in chasing those components around, I gave up.  I can't see how any 
developer would tolerate this issue.

regards,
denny
Comment 1 novakm 2008-05-12 09:38:25 UTC
Reassigning to form for evaluation
Comment 2 Jana Maleckova 2008-05-13 12:39:59 UTC
Could you please enclose form (both java and form files), you have created? 
I follow all the steps described in tutorial and if you respect all rules of GroupLayout, specially using guide lines,
preferred spaces around the components and offered alignment tools from top designer menu , you shouldn't have problems
like this.

to 1) this is strange... can you reproduce it. If yes, please describe exact steps which leads to this state.
to 2) Firstly, it's recommended to align components using alignment tools from top design menu and from popup menu of
component. 

Step which could help you:

Select every textfield individually and check "Space Around Component" via popup menu
there should be set: Default - small, medium or large space in combo for left edge of textfield. Avoid sizing in pixel
This should assure that the components are correctly aligned. 
Comment 3 Jan Stola 2008-05-27 10:24:34 UTC
No additional information provided => closing as non-reproducible.