Class GridBagLayoutUtil
- java.lang.Object
-
- ch.supertomcat.supertomcatutils.gui.layout.GridBagLayoutUtil
-
public class GridBagLayoutUtil extends Object
Klasse die das Verwenden vom GridBagLayout vereinfacht
-
-
Constructor Summary
Constructors Constructor Description GridBagLayoutUtil()KonstruktorGridBagLayoutUtil(int inseta, int insetb, int insetc, int insetd)Konstruktor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddItemToDialog(GridBagLayout gbl, GridBagConstraints gbc, Component c, JDialog dlg)Fuegt eine Komponente einem Dialog hinzustatic voidaddItemToFrame(GridBagLayout gbl, GridBagConstraints gbc, Component c, JFrame frm)Fuegt eine Komponente einem Frame hinzustatic voidaddItemToPanel(GridBagLayout gbl, GridBagConstraints gbc, Component c, JPanel pnl)Fuegt eine Komponente einem Panel hinzuGridBagConstraintsgetGBC(int x, int y)Constraints erstellenGridBagConstraintsgetGBC(int x, int y, int w, int h)Constraints erstellenGridBagConstraintsgetGBC(int x, int y, int w, int h, double weightx, double weighty)Constraints erstellenGridBagConstraintsgetGBC(int x, int y, int w, int h, double weightx, double weighty, int fill)Constraints erstellen
-
-
-
Method Detail
-
getGBC
public GridBagConstraints getGBC(int x, int y)
Constraints erstellen- Parameters:
x- X-Positiony- Y-Position- Returns:
- Constraints
-
getGBC
public GridBagConstraints getGBC(int x, int y, int w, int h)
Constraints erstellen- Parameters:
x- X-Positiony- Y-Positionw- Widthh- Height- Returns:
- Constraints
-
getGBC
public GridBagConstraints getGBC(int x, int y, int w, int h, double weightx, double weighty)
Constraints erstellen- Parameters:
x- X-Positiony- Y-Positionw- Widthh- Heightweightx- X-Weightweighty- Y-Weight- Returns:
- Constraints
-
getGBC
public GridBagConstraints getGBC(int x, int y, int w, int h, double weightx, double weighty, int fill)
Constraints erstellen- Parameters:
x- X-Positiony- Y-Positionw- Widthh- Heightweightx- X-Weightweighty- Y-Weightfill- Fill- Returns:
- Constraints
-
addItemToFrame
public static void addItemToFrame(GridBagLayout gbl, GridBagConstraints gbc, Component c, JFrame frm)
Fuegt eine Komponente einem Frame hinzu- Parameters:
gbl- Layoutgbc- Constraintsc- Komponentefrm- Frame
-
addItemToDialog
public static void addItemToDialog(GridBagLayout gbl, GridBagConstraints gbc, Component c, JDialog dlg)
Fuegt eine Komponente einem Dialog hinzu- Parameters:
gbl- Layoutgbc- Constraintsc- Komponentedlg- Dialog
-
addItemToPanel
public static void addItemToPanel(GridBagLayout gbl, GridBagConstraints gbc, Component c, JPanel pnl)
Fuegt eine Komponente einem Panel hinzu- Parameters:
gbl- Layoutgbc- Constraintsc- Komponentepnl- Panel
-
-