This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "get jList value" Watch "get jList value" New topic
Author

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.
regards,
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: http://aspose.com/file-tools
 
subject: get jList value
 
Similar Threads
JSplitPane/JScrollPane/JList alignment
How to make first row of JList unselectable like JTable
JCheckBox in a JList
JComboBox with muticolor items??
compilation error ,ListCellRenderer implementaion for Jtable