Sunday, August 30, 2009

Align Field in Center



For aligning ButtonField in a HorizontalFieldManager
---------------------------------------------------------------------------

HorizontalFieldManager hfm = new HorizontalFieldManager(HorizontalFieldManager.FIELD_HCENTER);
ButtonField button = new ButtonField("Button",DrawStyle.HCENTER);
hfm.add(button);


For aligning LabelFIeld Center
---------------------------------------------------------------------------

LabelField labelField = new LabelField("Center Label", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);



3 comments: