How to place control in JList?

F

for_leska

I need ability to put JPanel component in line of JList. I have wrote
CustomListCellRenderer class. It works. In list displays me panel with
some components. But I can't do anything with them!!! For JTable I can
create my own CellEditor, which resolve problems with editing. What can
I do with JList?

P.S. Of course, I can use JTable instead JList, but it isn't
preferable.

Thanks.
 
B

ByteCoder

I need ability to put JPanel component in line of JList. I have wrote
CustomListCellRenderer class. It works. In list displays me panel with
some components. But I can't do anything with them!!! For JTable I can
create my own CellEditor, which resolve problems with editing. What can
I do with JList?

P.S. Of course, I can use JTable instead JList, but it isn't
preferable.

Thanks.

You should add eventlisteners.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top