Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java GUI > Re: Count how m...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 7 Topic 9634 of 10019
Post > Topic >>

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.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
 




 7 Posts in Topic:
Count how many visible rows can be fetched into a JFrame from JT
Royan <romayankin@[EMA  2008-04-14 14:41:18 
Re: Count how many visible rows can be fetched into a JFrame fro
RedGrittyBrick <RedGri  2008-04-15 10:30:03 
Re: Count how many visible rows can be fetched into a JFrame fro
Chase Preuninger <chas  2008-04-16 06:17:45 
Re: Count how many visible rows can be fetched into a JFrame fro
"David A. Redick&quo  2008-04-19 18:17:26 
Re: Count how many visible rows can be fetched into a JFrame fro
Roedy Green <see_websi  2008-04-20 10:01:29 
Re: Count how many visible rows can be fetched into a JFrame fro
Royan <romayankin@[EMA  2008-04-20 14:58:57 
Re: Count how many visible rows can be fetched into a JFrame fro
RedGrittyBrick <RedGri  2008-04-21 09:48:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 21:26:07 CST 2008.