Re: Count how many visible rows can be fetched into a JFrame from JTable
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 20 Apr 2008 10:01:29 GMT
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
.
- References:
- Prev by Date: Re: Count how many visible rows can be fetched into a JFrame from JTable
- Next by Date: Re: Collision detection
- Previous by thread: Re: Count how many visible rows can be fetched into a JFrame from JTable
- Next by thread: Collision detection
- Index(es):