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.
- Display JFrame in Inspector window. - Right-clicked on it. Select Properties -> select tab Code -> Designer Size. - You can input new dimensions of the designer (Width, Height), but there is no OK button to save them. (The same also for JPanel, JDialog). Anyway, dimensions can be changed manually in Form Editor (Height and Width values in Designer Size are then affected by that).
This is as designed - the property is read-only. Note that read-only properties as grayed out.
Changed to enhancement after discussion.
Clarification: this enhancement suggests making Designer Size property editable - it is already possible to change this property by dragging of the boundary of the designer or by double clicking on the boundary.
Product Version: NetBeans IDE Dev (Build 200803170003) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Linux version 2.6.24-12-generic running on i386; UTF-8; en_US (nb) I was changing the size of a button that was inside the form. Original height of the button was "80". I wanted to change it to "150". Accidentally, I didn't delete the previous value and so the resulting button height was "80150". The form expanded along with the button to inhuman portions. So I changed the size of the button in the property window to 150 and I wanted to do the same for the JFrame (resize it using a Properties window). I was really surprised it is not possible to change the size of the JFrame in the same way - I had to undo my operations to fix the wrong form size. Of course, there is always a workaround. However, when the size of the form is editable using drag action on the JFrame boundary, I do not see any reasonable justification for making the size of the JFrame non-editable in the properties. Fix seems to be rather simple.
One more thing - I think also nice one. If you double click the border of the JFrame form, a dialog appears. In this dialog, you can set new dimension of the Form. Not very intuitive, but why not... properties window would be better.
*** This bug has been marked as a duplicate of bug 153085 ***