Hello.
I have created my table model by extending from AbstractTableModel. I've
notice that it dosen't have methods for selection managment (dosen't
implement ListSelectionListener). Maybe a newbie question, but how do I
implement it? Java tutorial on tables and such don't mention it.
What I need is when I press connect button, the game to connect to
server that is selected on the list.
--
Kova
Vova Reznik - 24 May 2006 20:17 GMT
> Hello.
> I have created my table model by extending from AbstractTableModel. I've
[quoted text clipped - 4 lines]
> What I need is when I press connect button, the game to connect to
> server that is selected on the list.
It is not model job (MVC).
Look JTable#getSelectedRow() that return index of selected row.
Kova - 24 May 2006 22:21 GMT
> It is not model job (MVC).
> Look JTable#getSelectedRow() that return index of selected row.
oh thanks... I really missed the point here
--
Kova