Results 1 to 4 of 4
  1. #1
    carl is offline Member
    Join Date
    Jul 2007
    Posts
    35
    Rep Power
    0

    Default Help with JTable in java

    Hi, Insert row and column. and delete row and column in JTable need create the database or not?

    Thanks.

  2. #2
    lenny is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default

    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)

  3. #3
    Rohendra is offline Member
    Join Date
    Aug 2007
    Posts
    2
    Rep Power
    0

    Unhappy 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!

  4. #4
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Posts
    1,270
    Rep Power
    9

    Default

    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

  1. ResultSet to JTable
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-11-2008, 09:01 AM
  2. How to add in a new row in Jtable?
    By Ry4n in forum AWT / Swing
    Replies: 0
    Last Post: 01-18-2008, 12:26 PM
  3. Help with application with JTable
    By cachi in forum AWT / Swing
    Replies: 2
    Last Post: 08-08-2007, 08:51 AM
  4. Help with JTable
    By fernando in forum AWT / Swing
    Replies: 1
    Last Post: 08-07-2007, 06:57 AM
  5. header of jtable
    By bbq in forum AWT / Swing
    Replies: 1
    Last Post: 07-05-2007, 04:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •