Results 1 to 2 of 2
Thread: Refresh JTable data
- 03-31-2011, 04:34 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 84
- Rep Power
- 0
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
- 03-31-2011, 06:18 PM #2
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,158
- Rep Power
- 5
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
-
Could not able to refresh JTable.
By pratim in forum AWT / SwingReplies: 3Last Post: 03-28-2011, 01:52 PM -
JTable refresh button.doClick()
By javaevgny in forum AWT / SwingReplies: 6Last Post: 01-14-2011, 04:28 PM -
Ye Olde jTable Refresh Question...
By Cynot in forum New To JavaReplies: 4Last Post: 05-26-2010, 11:09 PM -
Dynamic Refresh in JTable every 5 Minutes
By britto_bicsjohn in forum AWT / SwingReplies: 3Last Post: 08-07-2009, 05:16 AM -
how to refresh data of the JTable
By paty in forum JDBCReplies: 3Last Post: 08-17-2008, 12:01 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks