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 155540 - "Same size" property disapears after copying
Summary: "Same size" property disapears after copying
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-16 11:39 UTC by pribyl
Modified: 2009-05-25 20:57 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 pribyl 2008-12-16 11:39:32 UTC
Product Version: NetBeans IDE Dev (Build 200812150201)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

When items with the "Same size" option checked are copied(duplicated), the copied items have their original (different)
size.

Simple scenario:
1, Insert a JPanel into JFrame form and place two JButtons in the JPanel
2, Make one JButton wider that the other one
3, Select both and select "Same Size> Same Width" from their popup menu
4, Select the JPanel and Copy&Paste it (either to the same form, or to a different one)

-> The JButtons are different in the copied JPanel 

Imho this is quite confusing, especially when you copy some previously created containers and you did not realize, that
their components were resized by the "Same Size" option.
Comment 1 Jiri Vagner 2008-12-18 09:51:49 UTC
Reproducible. "Same Size..." options should have been copied too.