1. cray1000's Avatar
    i am playing with a basic program, its beyond basic but when i press the button in the app, the menu pops up, the one that says "full menu" next to the button. i am using 4.7 jde, so i dunno whats wrong.

    this is the simple code:


    FieldListener sendListener = new FieldListener();
    ButtonField sendButton = new ButtonField("Send");
    sendButton.setChangeListener(sendListener);
    add(sendButton);




    class FieldListener implements FieldChangeListener {
    public void fieldChanged(Field field, int Context) {
    // button action here


    }
    }


    idk why. its not just on the sim, on my phone too.
    02-16-09 07:46 PM
  2. Alcatraz62's Avatar
    You need to create it with a ButtonField.CONSUME_CLICK flag.
    02-25-09 08:13 AM
LINK TO POST COPIED TO CLIPBOARD