How to implement a loading bar with J2me

Do you need a simple, effective j2me loading bar for your long-running operations? And would you like to avoid using (horrible) forms and gauges? Here’s a simple component you can freely use, modify or even ignore :)

j2me canvas loading bar

You can see a live preview on the emulator. To use it, you’ll simply instantiate and start it, like this:

LoadingBar bar = new LoadingBar(100, 40, 5, 10, 0xff0000);
bar.start();

For an explanation of source code you can go to my Forum Nokia Article: J2ME Canvas Loading Bar. If you simply want rude code, here it is: LoadingBar.java, and here is a sample Canvas using it: LoadingBarCanvas.java.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • Furl
  • Ma.gnolia
  • MisterWong
  • NewsVine
  • Reddit
  • StumbleUpon
  • Technorati

Tags: , , ,

5 Responses to “How to implement a loading bar with J2me”

  1. cibenxs Says:

    sorry before…

    i am interesting with this aplication…

    but i can understand how to implement this aplication

    can i get tutorial to using it

    thx beofre

  2. pit Says:

    Hi Cibenxs,

    you’re right, its use was not clear from my article, so I’ve posted a sample Canvas that makes use of it. You can find its source code at the end of the post itself.

    Pit

  3. cibenxs Says:

    thx for ur attention
    but can i get this canvas source code this application now, please?
    because i want to using this application to combine with my application to solve my final project.

    can i?

    thx before

  4. cibenxs Says:

    oh… i1am sory.i`m not look loadingcanvasbas. java before. thanks you very much

  5. pit Says:

    You’re welcome :)

Leave a Reply