j2me repaint() quetion

Discussion in 'Java' started by yinglcs, Aug 18, 2006.

  1. yinglcs

    yinglcs

    Joined:
    Aug 18, 2006
    Messages:
    1
    Likes Received:
    0
    i have a j2me repaint() quetion. I apprecaite if you can help me with that.

    In my code, I call
    repaint(x1, y1, w1, h1);

    ...

    repaint(x2, y2, w2, h2);

    ...
    repaint(x3, y3, w3, h3);

    ...
    repaint(x4, y4, w4, h4); // note: x1 , x2, x3, x4 are all different values.

    even though repaint() is call a-sync, I should still see paint() get called 4 times, right?

    From my debugging, I see the no of paint() is less than the no of called i made to repaint().

    Do you have any idea why is that?

    Thank you.
     
    yinglcs, Aug 18, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. amitprasad.one@gmail.com

    Frame related quetion - to enable cookies

    amitprasad.one@gmail.com, Dec 2, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    564
    Grant Merwitz
    Dec 2, 2005
  2. jose luis fernandez diaz
    Replies:
    13
    Views:
    3,312
    Abhishek
    May 5, 2004
  3. jose luis fernandez diaz

    Newbye quetion: Why a double can store more number than a long ?

    jose luis fernandez diaz, May 3, 2004, in forum: C Programming
    Replies:
    11
    Views:
    767
    jose luis fernandez diaz
    May 4, 2004
  4. Porky Pig Jr
    Replies:
    2
    Views:
    1,229
    A. Lloyd Flanagan
    Jun 22, 2004
  5. gagaguy@gmail.com

    quetion about "+=" and "runtime"

    gagaguy@gmail.com, Aug 4, 2005, in forum: Python
    Replies:
    3
    Views:
    331
    Robert Kern
    Aug 4, 2005
  6. gagaguy@gmail.com

    quetion about "+=" and "runtime"

    gagaguy@gmail.com, Aug 4, 2005, in forum: Python
    Replies:
    0
    Views:
    345
    gagaguy@gmail.com
    Aug 4, 2005
  7. =?Utf-8?B?cGVsZWdrMQ==?=

    dot net and sql server-2 quetion

    =?Utf-8?B?cGVsZWdrMQ==?=, Aug 13, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    359
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Aug 14, 2007
  8. tia86

    clock divider quetion

    tia86, Sep 20, 2009, in forum: VHDL
    Replies:
    1
    Views:
    771
    debayan_p
    Sep 24, 2009
Loading...