Creating a table with an initial element selected

Posted by Tony on Stack Overflow See other posts from Stack Overflow or by Tony
Published on 2010-05-10T21:56:18Z Indexed on 2010/05/10 23:24 UTC
Read the original article Hit count: 288

Filed under:
|
|
|

I want to create a table which displays in each row a set of data, in addition to a radio button for possible selection. This can be achieved easily by using a simple table model class which extends the DefaultTableModel and a cell renderer and editor class which implements the TableCellRenderer and TableCellEditor interfaces respectively. What I really couldn't manage to do is to make the table to display initially one of the elements (rows) initially selected. It seems straightforward but it isn't...does anybody have a clue about it?

© Stack Overflow or respective owner

Related posts about java

Related posts about swing