Hauke Ingmar Schmidt wrote:Selection is explained in the JTable tutorial.
Charles Sexton wrote:I like single selection but is their anyway to add ctrl+click to this selection?
Charles Sexton wrote:How would you disable mouse drag or the selection of multiple rows when the mouse is dragged? I can select the whole list with a mouse drag and I don't really want to be able to do this.
Paul Clapham wrote:
Charles Sexton wrote:How would you disable mouse drag or the selection of multiple rows when the mouse is dragged? I can select the whole list with a mouse drag and I don't really want to be able to do this.
As for your original question: Why is it a problem that you can select rows that way? Surely you aren't accidentally dragging the mouse over the table and selecting rows you didn't mean to select?
I ask because it's often difficult to disable part of the normal functioning of a component. So if there isn't a serious need to answer this question, I would just leave it to work the way it works now.
Paul Clapham wrote:
Charles Sexton wrote:How would you disable mouse drag or the selection of multiple rows when the mouse is dragged? I can select the whole list with a mouse drag and I don't really want to be able to do this.
As for your original question: Why is it a problem that you can select rows that way? Surely you aren't accidentally dragging the mouse over the table and selecting rows you didn't mean to select?
I ask because it's often difficult to disable part of the normal functioning of a component. So if there isn't a serious need to answer this question, I would just leave it to work the way it works now.