Re: JList getSelectedValue returning null
- From: IchBin <weconsul@xxxxxxx>
- Date: Fri, 30 Dec 2005 17:51:14 -0500
soup_or_power@xxxxxxxxx wrote:
Can anyone tell me why a JList based on the following model returns null? Thanks!
[snip code]
[snip code]
for(Enumeration e = data.elements(); e.hasMoreElements();) { KeyValue temp = (KeyValue) e.nextElement(); if( temp.getKey().equals(obj) ) { return count; } count++; } return -1; }
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-) .
- Follow-Ups:
- Re: JList getSelectedValue returning null
- From: ricky.clarkson@xxxxxxxxx
- Re: JList getSelectedValue returning null
- References:
- JList getSelectedValue returning null
- From: soup_or_power@xxxxxxxxx
- JList getSelectedValue returning null
- Prev by Date: Re: Recommendations for displaying rows throug servlets -- like displaytag
- Next by Date: Re: Regarding Patent
- Previous by thread: JList getSelectedValue returning null
- Next by thread: Re: JList getSelectedValue returning null
- Index(es):