×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    47

    how to make button background transperent in lwuit?

    hi,
    i have just start learning lwuit and want to know how we can make button background transperent.

    i am using this code::
    Button b4=new Button("South");
    b4.getStyle().setBgTransparency(100);

    and for background i am using paint method in the form to paint background.

    Finally:-rightnow button background is white and screen background is blue. i want that button background also should be blue.

    thankx.

  2. #2
    Registered User
    Join Date
    Dec 2010
    Posts
    35

    Re: how to make button background transperent in lwuit?

    b4.getStyle().setBgTransparency(0);

  3. #3
    Registered User
    Join Date
    Nov 2010
    Posts
    47

    Re: how to make button background transperent in lwuit?

    hi,
    thankx for replying but there is no effect by 0.

  4. #4
    Registered User
    Join Date
    Sep 2010
    Posts
    6

    Re: how to make button background transperent in lwuit?

    hi hitendra
    To set a transparent of button

    you can use button property as follow
    [
    objButton.getUnselectedStyle().setBorder(null);
    ]

Similar Threads

  1. Adding image to a button using Lwuit.
    By nirbhay007 in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2010-12-29, 08:03
  2. LWUIT - set button color
    By burinutit in forum Mobile Java General
    Replies: 6
    Last Post: 2009-11-27, 14:34
  3. Replies: 3
    Last Post: 2009-09-17, 19:48
  4. How to get transperent background
    By swap842 in forum Mobile Java Games
    Replies: 3
    Last Post: 2009-06-01, 07:23
  5. How to make Play / Stop button and Record button
    By Kaz32 in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-04-24, 05:13

Posting Permissions

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