This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
re:about cell celection
Posted by Vladimir Kutsman on November 02, 2001 at 4:55 PM
Hi. I tried your code: it doesn't seem to do anything.
I don;t think theoretically it should though because what this code means is just getting the first column from the column model.
Do I have to set any special propery on it for me to be able to celect multiple (non-neighboring) cells using Cntrl key or something like that?
> The following is my code about solve select multiple problem.
> //The jShoppingCartTable is my jTable Variable
> jShoppingCartTable = new jTable(data, columnNames);
> TableColumn column = null;
> column = jShoppingCartTable.getColumnModel().getColumn(1);
> Hope it could help you. If you still have problem, please
> send email to you.
> > Hi,
> > Could you tell me how can i select multiple "Cell Selection" from the JTable.
> > For Example, you can find this feature in "MocroSoft Excel" (pressing "ctrl" key, select multiple cells) .
> > A reply mail could be a great help.
> > Thanx in Advance.
> > Regards,
> > Venkat.