That's right, if you click on the JTable, then the row you clicked on will be selected. But that wasn't your question, was it? You seem to be asking how to make your program do something when a row is selected. If that's your question, then the API documentation for JTable (follow this link) has a link to the JTable tutorial very near the beginning. Follow that and start reading the tutorial. There's a section about "User Selections" which will probably answer your question.
posted 9 years ago
I beg your pardon.. im sorry to make the title unclear or irrelevant to the posted code, .. what i want in my JTable is when i click a row, that row will be highlighted, but in this case i have an image Background in my Jtable,
Im having problems with that,
When I tried to remove the background , I can easily do that specific thing that I want, the whole row that I clicked was Highlighted, because of the background I cant see the highlight,
but I need to apply an Image Background in my JTable...