The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2002

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:

Selection inside of JTables

Posted by Patrick Meeks on February 12, 2002 at 6:28 PM

I'm trying to have a table in which I'd select a a single value from one of two rows for a series of columns. I.e., I'd select row1 columns 1,2,4 and row2 cols 3,5.

However, due to the limitations of the selection models inside of the JTable, I can't b/c it only sees things in terms of columns and rows independantly. Has anyone tried writing custom selection Models for JTables? I am asking b/c I didn't know how far back I'd have to go - I am thinking I'll have to write a custom JTable to handle the displaying of selected cells.

Anyone had any luck w/ this?




Replies:

Sponsored Links



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