Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3406

Re: Count how many visibl

From "Roedy Green" <roedy.green@THRWHITE.remove-dii-this>
Subject Re: Count how many visibl
Message-ID <815m04lfdbn32g8lem3q386n406rtokh3s@4ax.com> (permalink)
Newsgroups comp.lang.java.gui
References <932862b5-272c-4b8a-9bae-c2bff5a34f6e@l28g2000prd.googlegroups.com>
Date 2011-04-27 15:44 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
On Mon, 14 Apr 2008 14:41:18 -0700 (PDT), Royan <romayankin@gmail.com>
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

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Count how many visible ro "Royan" <royan@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000
  Re: Count how many visibl "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000
  Re: Count how many visibl "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000

csiph-web