GridBagLayout.addLayoutComponent

GridBagLayout.addLayoutComponent

Class Overview | Class Members | This Package | All Packages

Syntax 1
public void addLayoutComponent( String name, Component comp )
Parameters
name
the name of the component.
comp
the component to be added.
Description
Adds the specified component with the specified name to the layout.



Syntax 2
public void addLayoutComponent( Component comp, Object constraints )
Parameters
comp
the component to be added.
constraints
an object that determines how the component is added to the layout.
Description
Adds the specified component to the layout, using the specified constraint object.