1 /* 2 Copyright aswing.org, see the LICENCE.txt. 3 */ 4 5 import org.aswing.*; 6 7 /** 8 * 9 * @author iiley 10 */ 11 class org.aswing.utils.UIUtils{ 12 public static function center(obj:Object, com:Component):Void{ 13 obj._x = (com.getWidth() - obj._width)/2; 14 obj._y = (com.getHeight() - obj._height)/2; 15 } 16 } 17