[JList] How to get text from an index

int e_index = somthing.getSelectedIndex();

e_textbox.setText(somthing.getSelectedIndex();

I tried that but replaced int with string but it seems I have it wrong. I don't think there is a way to grab the text with getSelectedIndex. How would i do that ^^^.

[309 byte] By [kavon89a] at [2007-10-3 9:31:51]
# 1
getModel().getElementAt(int index).toString()
Aniruddha-Herea at 2007-7-15 4:46:43 > top of Java-index,Desktop,Core GUI APIs...
# 2
list.getSelectedValue().toString();
camickra at 2007-7-15 4:46:43 > top of Java-index,Desktop,Core GUI APIs...