For many layouts, the layout manager determines the size of the components by constraints, making sizing in the Java Visual Editor have no effect. However, when working with null, XYLayout, or GridBagLayout, you can size components when you first place them in your UI, or you can resize and move components later.
Note: GridBagLayout currently ignores size on creation, but you can then resize components after creation.
To size a component as you add it:
As you drag, an outline appears to indicate the size and position of the control.
To resize or move a selected component:
When you select a component, sizing handles or nibs, appear on the perimeter of the component. For some containers, a move handle appears in the middle of the component.
To resize or move a group of selected component:
When you select a component, sizing handles or nibs, appear on the perimeter of the component. For some containers, a move handle appears in the middle of the component.
OR
Click the desired size button in the Java Visual Editor toolbar. Operations which are invalid for the currently selected components appear disabled in the toolbar and context menu.
Determining the Size and Location of Your UI Window at Runtime
Copyright © 1997, 2004, Oracle. All rights reserved.