Results 1 to 3 of 3
  1. #1
    Dipke is offline Member
    Join Date
    Aug 2010
    Location
    Leuven, Belgium
    Posts
    86
    Rep Power
    0

    Default row selection change in JTable

    Hi,

    I have a JTable with a datamodel.
    When the selected row changes a display has to be updated with the data from the new row.
    Is there a rowselectionchangelistener ?
    I can update it with the mouselistener and keylistener but that are 2 different event.
    Is there a single event that i can listen ?

    Kind regards

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default

    Add a ListSelectionListener to the JTable's ListSelectionModel

    db

  3. #3
    Dipke is offline Member
    Join Date
    Aug 2010
    Location
    Leuven, Belgium
    Posts
    86
    Rep Power
    0

Similar Threads

  1. Selection in JTable
    By tremon in forum JDBC
    Replies: 1
    Last Post: 06-11-2010, 08:57 PM
  2. Problem in row selection in JTable
    By simmi in forum AWT / Swing
    Replies: 3
    Last Post: 03-23-2010, 04:30 PM
  3. Jtable selection question
    By casid in forum New To Java
    Replies: 2
    Last Post: 02-04-2010, 07:11 PM
  4. Problem in JTable row selection
    By shanssat in forum AWT / Swing
    Replies: 1
    Last Post: 02-04-2009, 07:50 AM
  5. Multiple selection on JTable
    By hendrix79 in forum New To Java
    Replies: 2
    Last Post: 01-30-2009, 06:11 PM

Tags for this Thread

Posting Permissions

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