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

Summary: "Same size" property disapears after copying
Product: guibuilder Reporter: pribyl <pribyl>
Component: Natural LayoutAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.