×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    214

    Unhappy Please any one help me .....................

    how can I create more than one buttons in lwuit and also display the values of the button in a text box...............

  2. #2
    Registered User
    Join Date
    Jun 2010
    Posts
    3

    Re: Please any one help me .....................

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •