Ich versuchs mal
DefaultTableModel besitzt eine Funktion
getDataVector()
Returns the Vector of Vectors
that contains the table's
data values.
So nun muss man nur feststellen welche Daten angezeigt werden.
rowAtPoint(
Point point)
Returns the index of the row that point lies in,
or -1 if the result is not in the range
[0, getRowCount()-1].
oder über Selectieren der Zeilen
getSelectedRows()
Returns the indices of all selected rows.
Spontan fällt mir dazu nichts mehr ein
[Update]
Das mit dem Scrollbalken kannst vergessen was ist wenn du die Tabele sortierst?
Die Methoden könnten relevant werden wenn du sortierst
[SIZE=-1] int[/SIZE]
convertRowIndexToModel(int viewRowIndex)
Maps the index of the row in terms of the view to the underlying TableModel. [SIZE=-1] int[/SIZE]
convertRowIndexToView(int modelRowIndex)
Maps the index of the row in terms of the TableModel to the view.