how can I create more than one buttons in lwuit and also display the values of the button in a text box...............
how can I create more than one buttons in lwuit and also display the values of the button in a text box...............
Use a container with borderlayout/boxlayout and add the Buttons in the layout you want i.e. on x or y axis.
Add ActionListener to each button using addActionListener() method and you can write the code to show the value of the button in this actionlistener's actionPerformed() method.
Following links might help you-
http://lwuit.blogspot.com/2008/07/as...-you-want.html
https://lwuit.dev.java.net/javadocs/...it/Button.html
https://lwuit.dev.java.net/javadocs/...nListener.html
Thanks,
J2ME_Bug