hi, i need to have such a thing - a dialog with added three editFields where i can put text and a 'ok' button. and after i click 'ok' my method will be called. Earlier i did it like this:
Code:
BasicEditField _name = new BasicEditField("Name: ", "");
BasidEditField _surname = new BasicEditField("Surname: ", "");
BasicEditField _password = new PasswordEditField("Password: ", "");
UiEngine _ui = Ui.getUiEngine();
Screen _screen = new Dialog(Dialog.D_OK, "Please enter:", Dialog.D_OK,
Bitmap.getPredefinedBitmap(Bitmap.TRUE_BLACK),
Manager.VERTICAL_SCROLL);
//add editFields
_screen.add(_name);
_screen.add(_surname);
_screen.add(_password);
but i do not know how to do, that after i click 'ok' my method will be called...