Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Anything like JTable for J2ME

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to display a grid of data in a MIDLet. Is there any gui objects out there to do the same sort of thing a JTable does, or do we have to reinvent it using the CustomItem class and creating our own JTable class?
Mark
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you would have to come up with your own implementation. But do you really want to display data grid on such small screens? In the meanwhile, you can check out Thinlet. They have a MIDP implemention for their XML UI. It is slow and does not take user input. But it is there.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well on a PDA it would be a little more screen real estate, I just wanted sum basic list of data that the user can scroll through and when they see one that interests them they can select it and go to a more detail page/form.
Thanks Michael.
Mark
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mark Spritzler:
Well on a PDA it would be a little more screen real estate, I just wanted sum basic list of data that the user can scroll through and when they see one that interests them they can select it and go to a more detail page/form.

For PDAs, you probably need PersonalJava or CDC/FP/PP. That would give you the full power of AWT (no Swing though). In MIDP, maybe "List" is what you are looking for?
cheers
Michael
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I though about using the list with monotype font, and have multiple fields conactenated together into a String, and it would look like a grid.
Just thought maybe there was a JTable somewhere.
Thanks for your help Michael.
Mark
 
Albert Kam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, i know the thread is old, but the neccessity is the same.

I've been googling around searching for JTable alike component which is AWT-based, but to no good results so far.

I thought the AGUI from JSR209 would solve the problem, but i'm not sure whether IBM J9 supports this or not, since IBM seems to reject the request in the final ballot. I've tried mailing IBM with this issue, but receive no replies yet

I've been thinking about the list solution too, but if there're other solutions, please share ..

All the best !
Albert Kam
 
Phil Denis
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Albert Kam:
Hello, i know the thread is old, but the neccessity is the same.

I've been googling around searching for JTable alike component which is AWT-based, but to no good results so far.

I thought the AGUI from JSR209 would solve the problem, but i'm not sure whether IBM J9 supports this or not, since IBM seems to reject the request in the final ballot. I've tried mailing IBM with this issue, but receive no replies yet

I've been thinking about the list solution too, but if there're other solutions, please share ..

All the best !
Albert Kam


Hi Albert,

I feel your pain... I went through this exercise a few years back.

After lots of searching, I ended up finding this table like component that would compile and run on J9: http://www.conjective.ch/e/resources.html. It has been working very well for me for a few years now.

Hope this helps!

Phil
 
Albert Kam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My deepest gratitude, Phil !
 
Phil Denis
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are very welcome Albert!

Enjoy!

Phil
 
Amila Jayatillaka
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey i think you must try netbeans there is a custom component for tabel
 
Albert Kam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Did you mean this one ? If so, i think it's not an AWT table, it's a midlet.

Anyway, does anyone got an editable AWT table ?

The TableBean component from above works real good. It can be perform event handling on clicking the table record, can handle the checkboxes. It'd be better if it could handle editable cells in the table.

 
Amila Jayatillaka
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are referring to this http://www.netbeans.org/kb/55/custom-tableitem.html.
If yes this is not a midlet but a custom item created by netbeans which you can put in to a form. It's almost like a JTable.
And he asked about "Anything like JTable for J2ME" so this is a J2ME custom component and midlet is the main class in J2ME .
[ November 20, 2008: Message edited by: Amila Jayatillaka ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic