Hi, Insert row and column. and delete row and column in JTable need create the database or not?
Thanks.
Printable View
Hi, Insert row and column. and delete row and column in JTable need create the database or not?
Thanks.
I dont understand what you actually want, but this link should help you out.
How to Use Tables (The Java™ Tutorials > Creating a GUI with JFC/Swing > Using Swing Components)
I am selecting multiple files from FileDialog & adding it to a JTable
Everything is working fine..
the problem(which has troubled me for last 3 days) is that the no. of rows are added but its content are same as that of last file in the FileDialog..
I mean to say that rows are added with same content..
plz help!
That should be an object reference issue. Make sure you are not using same object reference while you are adding the objects to the table! The problem is most probably this. In your data model for table, you are holding references to the same object which is pointing to the last file in the FileDialog..