Easy way to scroll to a row in a JTable

Hi,Is there an easy way to scroll to a specific row in a JTable?Just like in JTree...Thxnull
[127 byte] By [Oleka] at [2007-11-27 4:56:03]
# 1

One way could be to use [url=http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTable.html#getCellRect(int,%20int,%20boolean)]getCellRect[/url] to get a Rectangle for the given row, and then use [url=http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JComponent.html#scrollRectToVisible(java.awt.Rectangle)]scrollRectToVisible[/url] to scroll to that row.

Torgila at 2007-7-12 10:11:08 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thx a lot this works quiete well
Oleka at 2007-7-12 10:11:08 > top of Java-index,Desktop,Core GUI APIs...