Skip to Main Content

Java SE (Java Platform, Standard Edition)


For appeals, questions and feedback about Oracle Forums, please email Please ask technical questions in the appropriate category. Thank you!

Disable drag selection in JTable

843807Apr 20 2010 — edited Apr 21 2010
I have a table using MULTIPLE_INTERVAL_SELECTION selection mode and row selection is on. I am using the Windows Look and Feel on Windows XP. I have recently implemented drag and drop for the table and would like to turn off the ability to select rows by dragging. I still want to be able to select rows using a mouse click with CTRL and SHIFT select. The problem is that dragging to select and dragging out of the table are confusing to use together.

Does anyone know an easy way to turn off drag selection?
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 19 2010
Added on Apr 20 2010