This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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

Consider Paul's rocket mass heater.
subject: get jList value