views:

44

answers:

3

Hi Friends,

I am working on blackberry application, I need to align the buttons side by side, can you please give me a sample code

Thanking you

A: 

Seems you want to add those buttons to HorizontalFieldManager before adding to your Screen.

Reflog
Thanq very much
upendra
A: 
final class MyScreen extends MainScreen {
    MyScreen() {
        HorizontalFieldManager hfm = new HorizontalFieldManager();
        hfm.add(new ButtonField("button1"));
        hfm.add(new ButtonField("button2"));
        add(hfm);
    }
}
Andrey Butov
thank q this code is working fine
upendra
upendra, you should probably "accept" this as the answer if it helped you.
Marc Paradise
A: 

you can use grid layout manager , refer the following link

http://www.thinkingblackberry.com/archives/116

rupesh
thanq very much
upendra