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 91681 - Problems placing multiple items using AbsoluteLayout
Summary: Problems placing multiple items using AbsoluteLayout
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-02 14:33 UTC by ngbrito
Modified: 2007-09-18 16:06 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 ngbrito 2007-01-02 14:33:16 UTC
Scenario:
1) Create a new JFrame.
2) Click the JButton in the Palette.
3) While holding the SHIFT key click anywhere inside the frame. The result will
be a button placed at the same place where you clicked.
4) Click in another place of the frame to place the second button. The result is
that the button will not be placed where you clicked.

When you click the mouse while pressing the shift key, the place holder becomes
offset from the mouse cursor as if the mouse was at the top left corner of the
frame when you clicked it.

This problem happens when you use Null layout or AbsoluteLayout.
Comment 1 Max Sauer 2007-01-10 08:41:13 UTC
Reassingning to proper component..
Comment 2 Tomas Pavek 2007-01-10 10:31:53 UTC
Yes, it is really broken. Adding with shift is not usable in AbsoluteLayout and 
null layout. Thanks for report.
Comment 3 Jan Stola 2007-09-18 16:06:21 UTC
Fixed.

Modified files:
/cvs/form/src/org/netbeans/modules/form/HandleLayer.java
new revision: 1.181; previous revision: 1.180