Update specific rows in JTable


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Update specific rows in JTable

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Posts
    1

    Question Update specific rows in JTable

    Hi ,
    I have some 5000 rows in the table .I select and edit some of them .What i want to do now is to refresh the table with updated records.I want to know is there any way by which i can reload only updated records and refresh rest of the table?

  2. #2
    Join Date
    Feb 2006
    Location
    Cologne - Germany
    Posts
    271
    when using setValueAt(Object aValue, int rowIndex, int columnIndex) of tablemodel (see http://java.sun.com/j2se/1.4.2/docs/...ableModel.html) a tablemodelevent is created with just that cell. the corresponding listener should then only update the view for that cell.

Similar Threads

  1. dynamically hiding/showing specific rows
    By syxxzonz in forum Web
    Replies: 2
    Last Post: 06-08-2005, 09:42 AM
  2. UPDATE TRIGGER for a specific record
    By Edwin in forum Database
    Replies: 2
    Last Post: 03-27-2003, 12:35 PM
  3. Number of rows update Oracle 8i -using ADO
    By Jawahar Rajan in forum VB Classic
    Replies: 0
    Last Post: 07-09-2002, 06:56 AM
  4. Replies: 3
    Last Post: 06-18-2001, 12:04 PM
  5. JTable: colored rows, how to?
    By Fabio Luis De Paoli in forum Java
    Replies: 1
    Last Post: 12-16-2000, 11:00 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center