JList with custom cell renderer vs Jtable?

In my experience using JTable is usually easier as it allows more complex data and functionality out-of-the-box. Usually when I try to do something the JList can't do, I just switch to JTable without a second thought. What you want sounds like something that should be pretty trivial to implement in a table.

I suggest you try it out with some mock data to see if you can make it look and work the way you like (especially in case you want it to look like a list).

Thanks for the advice, let's see if I can quickly fix with the JList and if not, I'll switch over. – Matthieu Oct 18 '10 at 23:24 Lot of work ahead, but I hope for the better... – Matthieu Oct 20 '10 at 3:06.

Try calling setLayoutOrientation(JList. VERTICAL) on your JList. That will restrict JList to a single column.

I will try that... – Matthieu Oct 18 '10 at 23:38 No, that did not help... looks like I am going to move to JTables... hopefully will make things a bit easier... – Matthieu Oct 20 '10 at 3:06.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions