0

I need to avoid duplicate row selection in JTable. If previously selected row is selected again, I don't want to fire mouseevent or need some API which can tell me if it is a duplicate row selection. I can maintain indexes for previously selected rows, but want to avoid it , if possible

I am using JIDE table APIs in my functionality, so if there is any JIDE related method which can indicate such scenario.

  • Thanks
niteen22
  • 351
  • 3
  • 13
  • 2
    Is adding a listener to the selection model not sufficient ? Why would you want to bother with the mouse events ? – Robin Nov 05 '12 at 11:55
  • Simply keep track of the rows already selected in a List, and check to see if the row was already selected in the first part of your JTable selection listener. – Gilbert Le Blanc Nov 05 '12 at 14:12

0 Answers0