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
Printable View
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
I fixed it I used KeyPressed and MouseClickes events but I'd like to know if there is a better way to do it.
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.
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...