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
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
AJAX coding school » Blog Archive » AJAX Tutorials [2008-04-11 09:14:41] 10:21 am on April 11, 2008 Permalink
[...] 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 [...]
Krishna 5:14 pm on March 4, 2009 Permalink
Hallo,
Im trying to do this tabbed menu, feature but struggling a lot since im not that good in Canvas. from your tutorial i got the menu with horizontal scroll. i want to build some graphs and text info in each of the tabs , im not sure where to change to get the display, can you please throw some light on it.
Thanks.
Krishna.
anchol 5:21 am on June 4, 2009 Permalink
Hi,
I have an example J2ME web services. when I connect to the server, the server does not receive unicode characters (utf-8). What can I do here.
Thanks.
k c wang 2:38 pm on October 31, 2009 Permalink
I’ve tried to get this to work without modifications, but Eclipse emulator keeps saying the main class is not a midlet !!! In fact, it would not even start except with having to run the configuration setup, and then the emulator stops with the error message. I see there is no startApp() method, and no call to display the stuff…..is this the problem?
rohit 11:57 pm on September 17, 2010 Permalink
hi can , we nest another tabbed menu inside othe , i very new to j2me so plz help