A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
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
Freezing and Unfreezing rows and columns in JTable
what is real world uses of cursors?
lock just one line
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015