File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes get jList value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "get jList value" Watch "get jList value" New topic

get jList value

aymane chetibi
Ranch Hand

Joined: Apr 12, 2006
Posts: 175
hi all,

I have a jList that has a cellRendrerer with 3 labels.
now I have the index selected and I want to get the value of on of the labels from this selection.

how can I do that.
please help.

the cell rendrer look something like that

my code to get is the data starts with something like that:

thanks a lot guys.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
doubtful this is the best solution, but it seems to work OK

I agree. Here's the link:
subject: get jList value
It's not a secret anymore!