Results 1 to 4 of 4
Thread: Help with JTable in java
- 08-07-2007, 01:41 AM #1
Member
- Join Date
- Jul 2007
- Posts
- 35
- Rep Power
- 0
- 08-07-2007, 07:06 AM #2
Member
- Join Date
- Jul 2007
- Posts
- 40
- Rep Power
- 0
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)
- 08-11-2007, 08:41 AM #3
Member
- Join Date
- Aug 2007
- Posts
- 2
- Rep Power
- 0
adding new row
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!
- 08-11-2007, 09:47 PM #4
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..
Similar Threads
-
ResultSet to JTable
By Java Tip in forum Java TipReplies: 0Last Post: 02-11-2008, 09:01 AM -
How to add in a new row in Jtable?
By Ry4n in forum AWT / SwingReplies: 0Last Post: 01-18-2008, 12:26 PM -
Help with application with JTable
By cachi in forum AWT / SwingReplies: 2Last Post: 08-08-2007, 08:51 AM -
Help with JTable
By fernando in forum AWT / SwingReplies: 1Last Post: 08-07-2007, 06:57 AM -
header of jtable
By bbq in forum AWT / SwingReplies: 1Last Post: 07-05-2007, 04:11 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks