Modifier and Type | Field and Description |
---|---|
private boolean | |
private boolean |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public boolean | |
public boolean | |
public void | layoutContainer(Container
the container in which to do the layout parent)Overrides java. Implements java. |
public Dimension | preferredLayoutSize(Container
the container in which to do the layout parent)Overrides java. Implements java. |
public void | |
public void |
fillColumns | back to summary |
---|---|
private boolean fillColumns |
fillRows | back to summary |
---|---|
private boolean fillRows |
VariableGridLayout | back to summary |
---|---|
public VariableGridLayout(int rows, int cols, int hgap, int vgap, boolean fillRows, boolean fillColumns) |
getFillColumn | back to summary |
---|---|
public boolean getFillColumn(JComponent c) |
getFillRow | back to summary |
---|---|
public boolean getFillRow(JComponent c) |
layoutContainer | back to summary |
---|---|
public void layoutContainer(Container parent) Overrides java. Implements java. Doc from java. Lays out the specified container using this layout.
This method reshapes the components in the specified target
container in order to satisfy the constraints of the
The grid layout manager determines the size of individual components by dividing the free space in the container into equal-sized portions according to the number of rows and columns in the layout. The container's free space equals the container's size minus any insets and any specified horizontal or vertical gap. All components in a grid layout are given the same size.
|
preferredLayoutSize | back to summary |
---|---|
public Dimension preferredLayoutSize(Container parent) Overrides java. Implements java. Doc from java. Determines the preferred size of the container argument using this grid layout. The preferred width of a grid layout is the largest preferred width of all of the components in the container times the number of columns, plus the horizontal padding times the number of columns minus one, plus the left and right insets of the target container. The preferred height of a grid layout is the largest preferred height of all of the components in the container times the number of rows, plus the vertical padding times the number of rows minus one, plus the top and bottom insets of the target container. |
setFillColumn | back to summary |
---|---|
public void setFillColumn(JComponent c, boolean b) |
setFillRow | back to summary |
---|---|
public void setFillRow(JComponent c, boolean b) |