j2me List

Login to reply to this topic.
Tue, 2008-05-27 11:58
Joined: 2008-04-14
Forum posts: 2


Hi all,

I've two questions-

First
In the j2me application suppose i've a list with no. of items. To select the item between 1 to 9, i can use 1 to 9 keys on keypad. Is thr any way such that i can select the list items after 9, like 12 or 20. Means when i press 20 on keypad, list item 20 get selected...

&
Second
Can i apply scroll bar to ChoiseGroup in j2me? becoz, if i've 15 choise elements then the choise box will go down upto screen size, but i want to restrict it to 4 to 5 elements and rest of the elements will be seen with scroll.

plz reply...

Thanks..


Tue, 2008-05-27 14:59
Joined: 2008-03-12
Forum posts: 30
Re: j2me List

I think not. MIDP doesn't have such API. Not even necessary that pressing 1-9 will result in a selection from the list - it's implementation dependent. Not sure about DoJa but, probably, also nothing like this.

In general I guess MIDP UI sucks and they all prefer to draw everything on their own Canvas-derived.
This way you will have full control over key presses and everything. But this would be more difficult.

However, I might be wrong. You can check at http://java.sun.com/ it seems not related to Symbian...

  • Login to reply to this topic.