Results 1 to 4 of 4
  1. #1
    itaipee is offline Member
    Join Date
    Dec 2008
    Posts
    99
    Rep Power
    0

    Default Update the GUI in JTable

    Hi

    I create JTable, and the data is controled by AbstractTableModel

    I have event that change the data in the JTable and I doing it by update the data in the AbstractTableModel.
    However, the JTable does not updated.

    How can I update the Jtable when the TableModel is changed?

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    8

    Default

    DefaultTableModel allows changes to be made to its data.

  3. #3
    itaipee is offline Member
    Join Date
    Dec 2008
    Posts
    99
    Rep Power
    0

    Default

    Ok, but changed in the data means automaticly changed in the GUI ?
    Must be another method that caused the changes to be updated in the GUI

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Yes, DefaultTableModel's changes will be updated automatically to the GUI.

Similar Threads

  1. phonebook update
    By nanna in forum New To Java
    Replies: 5
    Last Post: 03-09-2009, 10:13 PM
  2. How to update my jdk???
    By low224 in forum New To Java
    Replies: 4
    Last Post: 01-04-2009, 04:51 PM
  3. Replies: 2
    Last Post: 08-12-2008, 12:26 PM
  4. Replies: 2
    Last Post: 05-15-2008, 10:15 AM
  5. Using sql:update tag
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-13-2008, 11:49 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
  •