Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2013

    please help,how to add image on button

    i am working on S40 using sdk2.0 and lwuit S40_with_themes. how to add image on button and also tell me that how we can hide the button only image should show

  2. #2
    Regular Contributor
    Join Date
    Dec 2012

    Re: please help,how to add image on button

    U need to create an LWUIT Image and add it to the button using setIcon(Image) method. There are various states of a button like pressed,disabled etc.You can set the icons for them using the corresponding function like setPressedIcon(),setDisabledIcon() etc..

    Change the UIID of the button if you wish to override the look that comes to a button from the default theme.

    eg : buttonObject.setUIID("Label")

Similar Threads

  1. problem in display an image button on canvas(Background image)
    By mramin05 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2008-11-12, 04:51
  2. Image capture button in N90
    By jini_1 in forum Mobile Java General
    Replies: 2
    Last Post: 2006-11-16, 23:55
  3. image imn button
    By introuble in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-07-20, 18:49

Posting Permissions

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