Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

jlist set selected value

JList list = new JList(new String[]{"A","B","C"});
list.setSelectedIndex(0);
// "A" would be selected by default in this example.
 
PREVIOUS NEXT
Tagged: #jlist #set #selected
ADD COMMENT
Topic
Name
1+5 =