Re: Count how many visible rows can be fetched into a JFrame from JTable
by Roedy Green <see_website@[EMAIL PROTECTED]
>
Apr 20, 2008 at 10:01 AM
On Mon, 14 Apr 2008 14:41:18 -0700 (PDT), Royan <romayankin@[EMAIL PROTECTED]
>
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.htmlhttp://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