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
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.
Ardian Eko 7:24 pm on May 15, 2008 Permalink
thanks, I’ll try it first.
Regard,
bnm 5:19 am on May 27, 2008 Permalink
kuull.. thx
Elton kent 8:12 am on June 27, 2008 Permalink
why doesnt it scroll horizontally when more that 4 rows are added. the netbeans TableItem does
Shiva 9:16 am on June 1, 2009 Permalink
Hi, I’m new in j2me, is there any way to add table header to it?
Hu Rui 3:08 pm on October 8, 2009 Permalink
Thanks for your source code. It make me save lots of time to redesgine a new datagrid.
Baldo Bodi 1:16 pm on November 25, 2009 Permalink
I’m trying to import data from a tiny editor to an mobile apply, and for the table problem I recurr to this code.
http://wiki.forum.nokia.com/index.php/Create_more_flexible_table_in_Java_ME
But I’ve the problem for more width table don’t can scroll horizontally.
If anyone have a solution, I will be very pleased to hear how do it.
Asif javed 8:21 pm on April 3, 2010 Permalink
how can i get the source code.
Future Gadgets 9:42 am on February 23, 2011 Permalink
Here is the link dude… http://www.jappit.com/uploads/src/j2me_canvas_table_src.zip
Ajay 7:18 am on April 14, 2011 Permalink
when i installing jar file in my nokia 6300 and N-95 the application show a error “Application is not supported at this phone”,what i do in this stitutaion…anybody can hepl me..