Java Swing: How can i check if a row appears on screen before force scrolling to it ?
Posted
by Brad
on Stack Overflow
See other posts from Stack Overflow
or by Brad
Published on 2010-05-01T12:52:04Z
Indexed on
2010/05/01
12:57 UTC
Read the original article
Hit count: 362
I am using a Swing JTable, and i want to force scroll to a specific row inside it. That is simple using scrollRowToVisible(...), but i want first to check this row is not already visible on the screen before scrolling to it, as if it is already visible there is no need to force scroll.
How can i do that ?
© Stack Overflow or respective owner