Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User kumarv75's Avatar
    Join Date
    May 2010
    Posts
    214
    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 j2me_bug's Avatar
    Join Date
    Jun 2010
    Posts
    3
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved