GridBagConstraints to UIGridBagConstraints

To convert from AWT to AFC, instances of java.awt.GridBagConstraints should be transformed into instances of com.ms.ui.UIGridBagConstraints.

Purpose and Usage

AFC provides UIGridBagConstraints to complement UIGridBagLayout, AFC's replacement for GridBagLayout, as part of its improved UILayoutManager. UIGridBagConstraints provides two advantages over GridBagConstraints: first, you can use the variables cellX and cellY to specify the coordinates into which the component should be placed; second, there's a new static method, getOffsetFromAnchor(Dimension container, Dimension dim, int anchor), which allows you to calculate the location of the top-left point of a component placed inside an area with a given anchor.

Porting

The only change necessary is in the constructor: each instance of GridBagConstraints() should be changed to UIGridBagConstraints().