how to get focus on an item in j2me

hi alli want to know is there a class for getting focus on an item when the user selects it
[105 byte] By [sagar123a] at [2007-11-26 13:34:45]
# 1

If ur item on form, form is responsible for giving the foucs to that item when user selects it, u can be notifiyed with focus if u implement the itemStateChanged method from interface ItemStateListener

if your container is a Canvas , then u will be responsible for routing the focus between all items u draw on that canvas.

aromra at 2007-7-7 22:16:48 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

Thats not true. It will notify only:

* changes the set of selected values in a ChoiceGroup;

* adjusts the value of an interactive Gauge;

* enters or modifies the value in a TextField;

* enters a new date or time in a DateField; and

* Item.notifyStateChanged() was called on an Item.

Nothing else. I tried to use it to detect the focus on an Item and nothing is being fired by seleccting one Item or another. only on the above situations.

Message was edited by:

MelGohan

MelGohana at 2007-7-7 22:16:48 > top of Java-index,Java Mobility Forums,Java ME Technologies...