J2ME Table component with focus and scroll

Sometimes it happens that you must draw a table within a J2ME application. Even if there are some nice UI frameworks out there, they’re simply oversized if you need only a simple, plain, scrollable table.

This is the reason why I’ve decided to write a custom component that you can use to draw tables, with the following features:

  • Focusable cells
  • Vertical scrolling
  • Auto-sizing columns

J2ME canvas table screenshot

Some nice features to be added in a future version could be, for example:

  • Cell wrap when moving from a cell to another
  • Horizontal scrolling, to support tables with a lot of columns
  • Support for headers

You can see a live version on the emulator page. Full midlet source code is available here.

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: , ,

3 Responses to “J2ME Table component with focus and scroll”

  1. Ardian Eko Says:

    thanks, I’ll try it first.

    Regard,

  2. bnm Says:

    kuull.. thx :)

  3. Elton kent Says:

    why doesnt it scroll horizontally when more that 4 rows are added. the netbeans TableItem does

Leave a Reply