demoProgram which can be of simple one

211 Views Asked by At

I am creating a program in which i want to display dialog box(which shows yes/no command) when button clicked, after dialog box has been shown, when clicking yes button it moves to another form, can you help me to achieve this task? please let me know as soon as possible.

2

There are 2 best solutions below

0
On

Checkout the LWUIT repository here... In this repository contains LWUIT sample applications. See the sample code. and do like this..

Dialog.show("Sample", "Put ur information", "Ok", "Cancel");
0
On

Have a look at the Alert class (link text, the Form class, and the Display method to show stuff. That's pretty basic stuff and you'll find tons of examples / tutorials out there.

ps: Pure MIDP no LWUIT involved.