![]() |
Move grid lines: Move a grid line with the mouse. (You can also set cell sizes numerically, see below). |
![]() |
Duplicate grid lines: Additionally press Alt while moving a grid line.
|
![]() |
Select grid cells: Click inside a grid cell, select additional cells with Ctrl-Click or create contiguous selections with Shift-Click . Clicking a row/column header will select the entire row/column.
|
![]() |
Insert rows and columns: From the grid
select the appropriate command or, with at least one grid cell selected, press , for example inserts a row before the selected one.
|
![]() |
Delete rows and columns: From the grid
select the appropriate command or, with an entire row or column selected, press Backspace or Del .
|
![]() |
Move rows and columns: By the row/column headers you can move entire rows and columns. |
![]() |
Switch rows or columns: With any selection where exactly two different rows or columns are involved, you can switch rows or columns using the grid . |
![]() |
Absolute value: The column is guaranteed to be at least as wide as the defined value. If a component in that column has a preferred width greater than the specified width, the component's preferred width will be respected (see ). Most often you will set an absolute value for empty rows/columns. |
![]() |
Component-relative value: The column is guaranteed to be as wide as the component's preferred width. A component-relative value is specified by setting |
![]() |
Column-relative value: Two (or more) columns will be of the same width and this will be the width of the widest column involved (see
). If the involved columns have different weights (see next section) they will be of the same width only if there is no need to expand for either of the columns. |
![]() |
With at least one cell selected, change cell width with W+Value (where Value must be an integer). To change cell height, press H+Value. To change values relative to the current value, precede Value with |
JTabbedPane
or the content pane of a JFrame
) and the design grid's size is smaller than the container's size.
![]() |
With at least one cell selected, change column weight with C+W+Value (where Value must be an integer). To change row weight, press R+W+Value. To change values relative to the current value, precede Value with |
Tip: Pressing <Q> the cell weights of the currently displayed container, pressing <Q> again shows cell weights of sub-containers. Clicking in the editor clears the display. |
![]() |
Minimum size: Is calculated from the minimum size of all components in the grid. |
![]() |
Preferred size: Is calculated from the preferred size of all components in the grid. This is also the size of a pack() 'ed frame. |
![]() |
Fixed size: Draws a border around the design grid which you can adjust similar to a frame border (indeed this is to simulate a frame). At 'Grid | Fixed Size' you can set the border size . |