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 209890 - Snap Align Component to Component Causes Other Components to Move
Summary: Snap Align Component to Component Causes Other Components to Move
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 7.2
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-21 19:13 UTC by MackSix
Modified: 2012-04-12 13:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project that exhibits the problem. (16.04 KB, application/zip)
2012-03-21 19:13 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2012-03-21 19:13:48 UTC
Created attachment 117031 [details]
Project that exhibits the problem.

See Attached Project

See this video to duplicate: http://youtu.be/_vyUTmneQlM
Comment 1 MackSix 2012-03-21 19:33:54 UTC
Another video showing anchor change on other component.

http://youtu.be/Rlx1jCHM6II
Comment 2 MackSix 2012-03-21 21:45:53 UTC
Product Version: NetBeans IDE Dev (Build 201203210400)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 3 Jan Stola 2012-04-12 13:12:29 UTC
Reproducible - I was able to reproduce this issue using the attached project
and the steps from the video.

A form exhibiting this problem can even be built from scratch:

1. Create a new JFrame.
2. Put JList into top-left corner (with the preferred gaps, of course).
3. Put JComboBox into top-right corner.
4. Add JSpinner such that its bottom edge is aligned with the bottom edge of
   JList and its right edge is aligned with the right edge of JComboBox.
5. Add JButton just below the JList.
6. Add another JButton on the right side of the first one
   (buttons should be aligned on baseline).
7. Move JComboBox as shown on the video: its right edge should be aligned with
   the right edge of the second button and its top edge should be kept aligned
   with JList.