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 128462 - Missing OK button for JFrame "Designer Size"
Summary: Missing OK button for JFrame "Designer Size"
Status: RESOLVED DUPLICATE of bug 153085
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-26 16:32 UTC by kate
Modified: 2012-11-09 16:52 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kate 2008-02-26 16:32:17 UTC
- 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).
Comment 1 Jan Stola 2008-02-26 17:07:34 UTC
This is as designed - the property is read-only. Note that read-only properties as grayed out.
Comment 2 kate 2008-02-26 17:34:12 UTC
Changed to enhancement after discussion.
Comment 3 Jan Stola 2008-02-27 07:16:23 UTC
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.
Comment 4 Petr Dvorak 2008-03-18 12:41:42 UTC
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.
Comment 5 Petr Dvorak 2008-03-19 16:01:51 UTC
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.
Comment 6 Tomas Pavek 2012-11-09 16:52:15 UTC

*** This bug has been marked as a duplicate of bug 153085 ***