Re: JList getSelectedValue returning null



soup_or_power@xxxxxxxxx wrote:
Can anyone tell me why a JList based on the following model returns
null?
Thanks!

[snip code]

for(Enumeration e = data.elements(); e.hasMoreElements();) { KeyValue temp = (KeyValue) e.nextElement(); if( temp.getKey().equals(obj) ) { return count; } count++; } return -1; }

[snip code]

KeyValue curPosition = (KeyValue) data.elementAt(index);

[snip code]

What is KeyValue's type. What is it..
--


Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________


'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)
.