|
-
May 3rd, 2005, 02:45 PM
#1
Thread Starter
Junior Member
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
-
May 3rd, 2005, 06:22 PM
#2
Thread Starter
Junior Member
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.
-
May 3rd, 2005, 06:53 PM
#3
Dazed Member
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.
-
May 3rd, 2005, 09:55 PM
#4
Thread Starter
Junior Member
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|