Results 1 to 2 of 2
  1. #1
    pink123 is offline Member
    Join Date
    Feb 2011
    Posts
    84
    Rep Power
    0

    Default Refresh JTable data

    Hi,

    I have a Jtable showing 100s of record.I want to refresh the table with the new data on a button click(button click will get a single row).

    I am geting the data on button click but the Jtable is not refreshing with the new row .It displays the old data only?

    What could be the issue,can someone please help me?

    Thanks

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,226
    Rep Power
    6

    Default

    You have already posted 2 questions on this topic:

    Data not refreshing in Jtable
    Problem with jTable

    You have been given help. We are not mind readers. We can't guess what you might be doing wrong. You have been asked for a SSCCE by multiple members of the forum. You refuse to post one so you are on your own.

    Not only have you posted multiple postings on this topic you posted multiple postings on an IDE problem. You where asked not to do that. In fact a moderator closed the second posting.

    NonVisualComponents in .form file
    jpanel not showing up under inspector in netbeans


    Also, you asked a "what if" question without doing any work on your own:

    vector.size = -1

    You never respond to these postings, you never post code. You've been given plenty of chances. I'm sure form members are getting tired of your behaviour. I know I am which is why I won't respond until you make an effort.

    To solve your problem you create a simple program with some hard coded data in the table. Then you create an "Add Row" button that will also add some hard coded data to the table model. Once you get this working you can apply the knowledge to your real program that uses dynamic data. This is a SSCCE and absolutely nothing to do with confidential data or code.
    Last edited by camickr; 03-31-2011 at 06:33 PM.

Similar Threads

  1. Could not able to refresh JTable.
    By pratim in forum AWT / Swing
    Replies: 3
    Last Post: 03-28-2011, 01:52 PM
  2. JTable refresh button.doClick()
    By javaevgny in forum AWT / Swing
    Replies: 6
    Last Post: 01-14-2011, 04:28 PM
  3. Ye Olde jTable Refresh Question...
    By Cynot in forum New To Java
    Replies: 4
    Last Post: 05-26-2010, 11:09 PM
  4. Dynamic Refresh in JTable every 5 Minutes
    By britto_bicsjohn in forum AWT / Swing
    Replies: 3
    Last Post: 08-07-2009, 05:16 AM
  5. how to refresh data of the JTable
    By paty in forum JDBC
    Replies: 3
    Last Post: 08-17-2008, 12:01 PM

Posting Permissions

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