How to build a tab menu with J2ME

Here is a tutorial showing how to build a simple tabbed menu using J2ME, that you can try live on the emulator page

J2me tabbed menu
This first version will support:

  • Full styling of tabs (bg color, fore color, font face, margin, paddings and corner radius)
  • Automatic horizontal scrolling, so that you can put as many tab you want, without caring about screen width

There’s still a lot of room for improvements, but we’ll leave them for the next tutorial :)

You can find a detailed tutorial with source code on Form Nokia Wiki: J2ME Tabbed Menu Tutorial.

Direct links to source code:

  • TabMenu.java: main class, to include in your projects to build Tabbed Menus
  • TabMenuCanvas.java: a sample Canvas using TabMenu component, useful to understand how to use it
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: , , ,

One Response to “How to build a tab menu with J2ME”

  1. AJAX coding school » Blog Archive » AJAX Tutorials [2008-04-11 09:14:41] Says:

    [...] How to build a tab menu with J2ME By pit There’s still a lot of room for improvements, but we’ll leave them for the next tutorial. You can find a detailed tutorial with source code on Form Nokia Wiki: J2ME Tabbed Menu Tutorial. Jappit on Ajax, Mobile, and so on. - http://www.jappit.com/blog [...]

Leave a Reply