Re: Count how many visible rows can be fetched into a JFrame from JTable



On Mon, 14 Apr 2008 14:41:18 -0700 (PDT), Royan <romayankin@xxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

i want to be able to retrieve
the height of one JTable row and calculate the number of rows that
could be fetched into the current height of the JFrame.

JScrollPane does those calculations for you. See
http://mindprod.com/jgloss/jscrollpane.html
http://mindprod.com/jgloss/jtable.html

All you do is maintain the giant datamodel and the JTable and the
JScrollPane between them decide what to display.

--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.