public GridBagConstraints getConstraints (Component comp)

Gets the constraints for the specified component. A copy of the actual GridBagConstraints object is returned.

Parameters:
comp    the component to be queried

Returns:  the constraint for the specified component in this grid bag layout; a copy of the actual constraint object is returned