Arrange UI components

  1. Import the required classes and interfaces.
    net.rim.device.api.ui.container.HorizontalFieldManager;
    net.rim.device.api.ui.component.ButtonField;
  2. Create an instance of a HorizontalFieldManager.
    HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager();
  3. Invoke add() to add the HorizontalFieldManager to a screen.
    myScreen.add(_fieldManagerBottom);
  4. Create an instance of a ButtonField.
    ButtonField mySubmitButton = new ButtonField("Submit");
  5. Add the ButtonField to the HorizontalFieldManager.
    _fieldManagerBottom.add(mySubmitButton);
Previous topic: Arranging UI components

Was this information helpful? Send us your comments.