[Advanced-java] How to scroll JTable in code?

Lorin Davis ldavis at pangaeainc.com
Tue Mar 4 20:21:21 2003


If  you know the row number you want to goto in the JTable why not just
Change the selection selection on the JTable to that row

ie) JTable.changeSelection (rowIndex, colIndex, false, false);

-----Original Message-----
From: Alvin Wang [mailto:xwang@qtechservices.com]
Sent: Tuesday, March 04, 2003 12:19 PM
To: advanced-java@lists.xcf.berkeley.edu
Subject: [Advanced-java] How to scroll JTable in code?


Hi, in my code, I want to scroll a JTable (in a JScrollPane) to a specific
row. Can anyone tell me how to do this? thanks!

Alvin

_______________________________________________
Advanced-java mailing list
Advanced-java@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java