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.
Created attachment 113394 [details] Same Size option greyed out and not available I was testing TS 71 WindowWizard on Netbeans IDE RC 1. In the 4th Test Suite "Moving & Resizing Components in Design mode" and Section "Resizing Components" While Invoking contextual menu in design mode and choosing action Same Size -> Same Width or Same Height. The Same Size option is greyed out and not available. I find this as an important bug and attaching the screenshot too. Steps to reproduce the bug : 1. Create a Module project 2.Create a Top Component Window 3.Add various components (at least two) 4.Now for an example Select any two buttons by mouse keeping Ctrl key down. 5. Invoke contextual menu in design and choose action Same Size -> Same Width or Same Height. The Same Size option is greyed out and not available to be selected.
Reassigning to guibuilder for evaluation, but IMO this is not a bug. I see you have AbsoluteLayout set for the panel. With 7.1 RC1 everything works as expected (all these actions work for me) with the default Free Design layout. After switching to Absolute Layout all these are disabled.
> Reassigning to guibuilder for evaluation, but IMO this is not a bug. You are right. It is as designed. Same Size action is enabled for components in a container with Free Design only.
(In reply to comment #2) > > Reassigning to guibuilder for evaluation, but IMO this is not a bug. > > You are right. It is as designed. Same Size action is enabled for components in > a container with Free Design only. Is it a normal behavior that this Same Size option should not be available in Absolute Layout ?? Why should not it be enabled ?
> Is it a normal behavior that this Same Size option should not be available in > Absolute Layout ?? Why should not it be enabled ? Same Size action was implemented for Free Design to utilize GroupLayout's linkSize() ability. Absolute layout doesn't have any means to keep the size of several components in sync. In spite of that, I agree that 'Same Size' action can have some meaning even for Absolute Layout (i.e., setting the hardcoded size of the components to the maximum of current sizes of selected components). This functionality hasn't been implemented (yet?) because it is not as important in FreeDesign's case. Feel free to fill the corresponding enhancement.