JList Problem

I have a string array entered into an array list and I'm trying to get the value in an int, of where it is at. When I use lst.getSelectedValue(), it returns -1 for whatever I click on it. How do I get the value position of there the item in the array list is at? Please help.
[283 byte] By [blackmagea] at [2007-11-27 6:53:13]
# 1

If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program[/url] (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.

Don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags[/url] so the posted code retains its original formatting.

camickra at 2007-7-12 18:27:57 > top of Java-index,Desktop,Core GUI APIs...