Reputation: 3978
What property I am modifying when when dragging or double click the border of a JFrame
, or JDialog
or similar, using the visual editor that comes bundle within every Netbeans distribution?
I thing that the IDE is somehow modifying the size attribute inherited from JComponent
Class. But I see the code generated by the IDE and there is no call to setSize
... so that let me really wondering if somebody know what is behind.
Upvotes: 0
Views: 1291
Reputation: 347204
Firstly, when using any JFrame
or JDialog
you should use pack
whereever possible.
Having said that, if you click the "Code" of the "Properties" window for the form, you will see two properties: "Form Size Policy" and "Designer Size".
Upvotes: 1