File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Multiple selection in JTable
Joined: Sep 28, 2006
Sep 28, 2006 06:15:00
i had a problem in selecting mutiple rows. if we select 3 or 10 rows with Ctrl+A and Mouseclick when we select the 4th or 10th row it is deselecting the remaining rows. can any one help me
Joined: May 13, 2005
Sep 28, 2006 11:55:00
I do not get the question completely. You press Ctrl+A to select all the rows, then how do you need a mouse click to select the 4th row?
If your question is that you selected some rows and need to add the 4th row to the selected rows then:
Hold the Ctrl down when you click on the 4th row to add it to current set of selected rows.
I agree. Here's the link:
subject: Multiple selection in JTable
lock just one line
what is real world uses of cursors?
Freezing and Unfreezing rows and columns in JTable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014