| java.lang.Object java.awt.GridBagLayout snow.utils.gui.GridLayout3
GridLayout3 | public class GridLayout3 extends GridBagLayout (Code) | | A grid layout using gridbag layout.
It has better resizes features than the GridLayout2
|
enforceLineBreakAfter | boolean enforceLineBreakAfter(Code) | | |
GridLayout3 | public GridLayout3(int cols, JPanel target)(Code) | | USAGE: add the component to this layout with
add(comp, true/false), not with the panel add !
|
addTitleSeparator | public JComponent addTitleSeparator(String title, Color lineColor, int TitledBorderjustification, int TitledBorderposition, int spaceAbove, int spaceBelow)(Code) | | you have to import javax.swing.border.*;
Parameters: TitledBorderjustification - TitledBorder.CENTER, ... Parameters: TitledBorderposition - TitledBorder.DEFAULT_POSITION, ...the color should be UIManager.getColor("TitledBorder.titleColor"); |
insertLineBreakAfterNextComponent | public void insertLineBreakAfterNextComponent()(Code) | | force next added component to terminate the line
|
setColumnAlignment | public void setColumnAlignment(int col, int alignment)(Code) | | Parameters: alignment - is one of GridBagConstraints.WEST, ...if not specified, default is WEST |
setColumnWeights | public void setColumnWeights(double[] w)(Code) | | Example: give {0,10,0} to cause only the second column to be resized
|
Methods inherited from java.awt.GridBagLayout | protected void AdjustForGravity(GridBagConstraints constraints, Rectangle r)(Code)(Java Doc) protected void ArrangeGrid(Container parent)(Code)(Java Doc) protected GridBagLayoutInfo GetLayoutInfo(Container parent, int sizeflag)(Code)(Java Doc) protected Dimension GetMinSize(Container parent, GridBagLayoutInfo info)(Code)(Java Doc) public void addLayoutComponent(String name, Component comp)(Code)(Java Doc) public void addLayoutComponent(Component comp, Object constraints)(Code)(Java Doc) protected void adjustForGravity(GridBagConstraints constraints, Rectangle r)(Code)(Java Doc) protected void arrangeGrid(Container parent)(Code)(Java Doc) public GridBagConstraints getConstraints(Component comp)(Code)(Java Doc) public float getLayoutAlignmentX(Container parent)(Code)(Java Doc) public float getLayoutAlignmentY(Container parent)(Code)(Java Doc) public int[][] getLayoutDimensions()(Code)(Java Doc) protected GridBagLayoutInfo getLayoutInfo(Container parent, int sizeflag)(Code)(Java Doc) public Point getLayoutOrigin()(Code)(Java Doc) public double[][] getLayoutWeights()(Code)(Java Doc) protected Dimension getMinSize(Container parent, GridBagLayoutInfo info)(Code)(Java Doc) public void invalidateLayout(Container target)(Code)(Java Doc) public void layoutContainer(Container parent)(Code)(Java Doc) public Point location(int x, int y)(Code)(Java Doc) protected GridBagConstraints lookupConstraints(Component comp)(Code)(Java Doc) public Dimension maximumLayoutSize(Container target)(Code)(Java Doc) public Dimension minimumLayoutSize(Container parent)(Code)(Java Doc) public Dimension preferredLayoutSize(Container parent)(Code)(Java Doc) public void removeLayoutComponent(Component comp)(Code)(Java Doc) public void setConstraints(Component comp, GridBagConstraints constraints)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|