Open main menu

CDOT Wiki β

Changes

Lab BlackBerry Example

129 bytes added, 12:14, 27 February 2011
no edit summary
ButtonField _buttonGoBack = new ButtonField("Go Back",
ButtonField.FIELD_HCENTER | ButtonField.CONSUME_CLICK);
// build the listener object and add it to the button source, namely the _buttonGoBack object
_buttonGoBack.setChangeListener(new FieldChangeListener() {
public void fieldChanged(Field field, int context) {
}
});
// add the button to the screen
add(_buttonGoBack);
</source>