Results 1 to 4 of 4

Thread: simple question about JTable

  1. #1

    Thread Starter
    Junior Member lemenz70's Avatar
    Join Date
    Apr 2005
    Location
    Canada (Quebec)
    Posts
    23

    simple question about JTable

    Hi
    I made a program wich uses a JTable. I have to know whenever the user select another line but I didn't find any event that does this yet. So I'd like to know if there's a way to add this kind of event or if there is already an event.
    Thanks
    William

  2. #2

    Thread Starter
    Junior Member lemenz70's Avatar
    Join Date
    Apr 2005
    Location
    Canada (Quebec)
    Posts
    23

    Re: simple question about JTable

    I fixed it I used KeyPressed and MouseClickes events but I'd like to know if there is a better way to do it.
    William

  3. #3
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Re: simple question about JTable

    Check out the class TableModelEvent which can be found within the package javax.swing.event. The class contains some methods to test what row, rows, ,cell or cells have been edited.

  4. #4

    Thread Starter
    Junior Member lemenz70's Avatar
    Join Date
    Apr 2005
    Location
    Canada (Quebec)
    Posts
    23

    Re: simple question about JTable

    Thanks for help but I already know wich row is selected... I thought there was an event or something like "OnRowChange" or wathever like that but it seems that it can only be done by the combination of KeyPressed and MouseClicked events...
    William

Posting Permissions

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



Click Here to Expand Forum to Full Width