Placement of ButtonField
Posted
by rupesh
on Stack Overflow
See other posts from Stack Overflow
or by rupesh
Published on 2010-06-17T21:22:37Z
Indexed on
2010/06/18
6:23 UTC
Read the original article
Hit count: 354
blackberry
Hi
i want to place the Buttons as displayed in the image:
for this i am using the following code but it is not working for me can any one please help me out
topbarManager = new HorizontalFieldManager();
topbarLeftManager = new HorizontalFieldManager(Field.FIELD_LEFT);
topbarRightManager = new HorizontalFieldManager(Field.FIELD_RIGHT);
topbarCenterManager = new HorizontalFieldManager(Field.FIELD_HCENTER);
topbarLeftManager.add(new ButtonField("first"));
topbarRightManager.add(new ButtonField("second"));
topbarCenterManager.add(new ButtonField("third"));
topbarManager.add(topbarLeftManager);
topbarManager.add(topbarCenterManager);
topbarManager.add(topbarRightManager);
i am not getting the result as i required.
can any one please Help me out.
Thanks a lot
© Stack Overflow or respective owner