J2ME and List
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mat_novak
Posted On:   Saturday, April 19, 2003 03:43 AM

Hello. Is it possible to make a selected choice in a List? Please take a look on the following code (in HTML): poz1 poz2 poz3 poz4 I'd like to do sth similar in Java List menu = new List("n", Choice.IMPLICIT); menu.append("poz1",null); menu.append("poz2",null); menu.append("poz3",null); menu.append("poz4",null); display = Display.getDisplay(this); display.setCurrent(menu); But how to initially choose position no 3? Regards Mat    More>>

Hello. Is it possible to make a selected choice in a List?
Please take a look on the following code (in HTML):

poz1

poz2

poz3

poz4

I'd like to do sth similar in Java

List menu = new List("n", Choice.IMPLICIT);

menu.append("poz1",null);

menu.append("poz2",null);

menu.append("poz3",null);

menu.append("poz4",null);

display = Display.getDisplay(this);

display.setCurrent(menu);

But how to initially choose position no 3?

Regards

Mat

   <<Less

Re: J2ME and List

Posted By:   Liam_Quinn  
Posted On:   Monday, April 21, 2003 04:10 PM

menu.setSelectedIndex(2, true);
About | Sitemap | Contact