Tagged: j2me Toggle Comment Threads | Keyboard Shortcuts

  • pit 8:25 am on April 11, 2008 Permalink | Reply
    Tags: , j2me, navigation tabs, tabbed menu, tabs   

    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
     
    • 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

  • pit 10:48 am on April 10, 2008 Permalink | Reply
    Tags: , , j2me, scrollable text,   

    Building a J2ME vertical scrollable text component 

    Everyone needs scrollable text, soon or late :)

    This is the reason why I’ve posted a simple tutorial on how vertical scrollable text can be implemented with J2ME.

    Scrollable text screenshot

    You can find it on Forum Nokia Wiki: J2me Scrollable Text tutorial

    Comments are welcome!

     
    • Jonas L 9:51 pm on July 5, 2008 Permalink

      Hi.. Nice example.. but how should the “getTextRows(…)” look like ??

    • pit 5:33 pm on July 17, 2008 Permalink

      Hi Jonas!

      I’ve added the missing method on Wiki article :)

      Hope it helps!
      Pit

    • Tyler 12:43 pm on April 25, 2009 Permalink

      Nice…
      Thanks…

    • knights123 7:15 am on August 4, 2009 Permalink

      Hi,

      I’m trying to integrate this part of code into my application.but im unable to do so..

      Can u please send the complete source code of this.

      It would be very helpful to me

      Thanks in advance.

    • dj 11:29 am on January 16, 2010 Permalink

      hi, ive tested this code but i cant seem to make the scroll up and down to work using the keycodes. can you please help me? thanks and more power!

  • pit 9:46 pm on April 9, 2008 Permalink | Reply
    Tags: , custom text field, j2me,   

    Forum Nokia Wiki.. my first article! 

    Forum Nokia Wiki

    Yeah, I’ve finally done it!

    Forum Nokia Wiki is a precious source for any kind of mobile related problems or questions, and now I’m really happy to have found the time to post my first article, that is…

    How to implement custom Text Fields with J2ME!

    Hope you’ll find it useful :)

    EDIT: you can now test the custom Text Field component with the web emulator here.

     
    • Tyler 7:55 am on May 8, 2009 Permalink

      it is easy to implement.
      thanks.

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel