The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2001

Advertisement

Advertisement

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 Artima Forums.

Message:

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?

Thanks
Vladimir

> Hi,
> 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.





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us