×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Super Contributor
    Join Date
    Apr 2009
    Posts
    572

    Lwuit Container paint

    Hi All,

    I am overriding paint method of container and adding that container to form but there is not change in container can somebody enlighten me
    Regards,
    Saurabh

  2. #2
    Registered User
    Join Date
    Mar 2010
    Posts
    16

    Thumbs up Re: Lwuit Container paint

    Hi, Sourabh

    Set the layout of the form before adding the container to the form.
    try the below code.


    Display.init(this);
    Form form=new Form("Painting");
    form.setLayout(new BorderLayout());
    MyContainer container=new MyContainer();
    form.addComponent(BorderLayout.CENTER,container);
    form.show();

    Let me know if is solves your problem.........

  3. #3
    Super Contributor
    Join Date
    Apr 2009
    Posts
    572

    Re: Lwuit Container paint

    Hi Ashu,

    I already solved my problem actually I was overriding the paint method of form(white color) and container(black color) both but since form is painted later than container so the whole screen looks white and I thought if container is added above form so it should be seen but its all the problem of paint callbacks BTW I have solved my problem thanks for your support
    Regards,
    Saurabh

Similar Threads

  1. Replies: 0
    Last Post: 2010-04-20, 12:25
  2. LCDUI Alert on an LWUIT Form
    By slugger_2003 in forum Mobile Java General
    Replies: 0
    Last Post: 2010-04-18, 13:01
  3. Read Dymanic Swf from Container - Problem
    By vijai54 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 18
    Last Post: 2010-04-15, 15:28
  4. Is switching to another Canvas inside a paint() method OK?
    By falconpl in forum Mobile Java General
    Replies: 2
    Last Post: 2006-05-06, 00:15

Posting Permissions

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