Hey, An existing part of my program returns an ArrayList and I have to display this in a JTable. Currently, I am converting the list into a vector of vectors and then using "setDataVector()" method of the DefaultTableModel.
But it does not display any data in the JTable. I even tried creating a temporary vector of data and still nothing ! So its not that the program returns a null list.
Also i find this method to be quite cumbersome, having to convert a list into a vector of vectors. Can someone suggest a different way of displaying an ArrayList in a JTable ?
I already have an empty table in my swing application. On clicking a button called 'Register',my program gets called and I get my 'list' populated by my program. So in a sense, I have to change the existing table to now display the contents of that arraylist.
I am sorry if i didnt mention that clearly. [ March 20, 2006: Message edited by: Russell Peters ]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com