File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
compilation error ,ListCellRenderer implementaion for Jtable
JComboBox with muticolor items??
JCheckBox in a JList
JSplitPane/JScrollPane/JList alignment
How to make first row of JList unselectable like JTable