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 ]