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 178969 - Slider in panel stops further controls from snapping
Summary: Slider in panel stops further controls from snapping
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-22 05:52 UTC by AndrewCardy
Modified: 2009-12-23 05:45 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 AndrewCardy 2009-12-22 05:52:11 UTC
When a slider control is added to a panel, any further controls cannot snap to the slider. If you try and add extra controls below the slider they align themselves erratically with no obvious logic.

Steps to reproduce:

1) Create a new JFrame Form.
2) Add a new label, snap and align to the top of the form.
3) Add a new slider, snap and align to the top of the label.
4) Add a new label, snap and align to the top of the slider. Note at this stage that the behavour is correct and the label can be alligned to the slider
5) Add a new JPanel, snap and align to the top of the label.
6) Add a new Label in the JPanel, snap and align to the top of the JPanel.
7) Add a new Slider in the JPanel, snap and align to the top of the Label.
8) Add a new Label in the JPanel, try to snap and align to the top of the Slider. This will not work and any other controls added below the label will simply be unplacable and therefore unusable in design as the designer seems to place them randomly.

Setup Details:

Product Version: NetBeans IDE 6.7.1 (Build 200907230233)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)
Userdir: C:\Documents and Settings\Andy\.netbeans\6.7
Comment 1 Jan Stola 2009-12-23 04:34:03 UTC
I am sorry, I am not able to reproduce this issue. I must do something in a different way. Could you, please, attach your form (both .java file and .form) file after step 7. and describe where exactly I should attempt to add the next label.

> any other controls added below the label will
> simply be unplacable and therefore unusable
> in design as the designer seems to place them randomly.

Could you, please, provide an exact example of this behaviour? Please, do not forget do describe expected versus actual behaviour. Thank you in advance.
Comment 2 Jan Stola 2009-12-23 05:45:17 UTC
The reporter is no longer able to reproduce this issue => closing as non-reproducible. Feel free to reopen it if/when you encounter this issue again, but do not forget to provide exact steps to reproduce then. Thank you in advance.