Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: how do you block the GUI repaints? Date: Wed, 23 May 2018 11:06:50 -0400 Organization: A noiseless patient Spider Lines: 30 Message-ID: References: <2ddef1c1-ac37-4384-a3a5-f9b94a1fcbf6@googlegroups.com> <7da12ca3-a20e-4b84-a2f0-6e26657c4848@googlegroups.com> <9ca8b690-f847-4089-aeb2-8375b643ccf5@googlegroups.com> <7945bc92-fb5f-44df-9699-bec065a7f4ed@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 23 May 2018 15:06:54 -0000 (UTC) Injection-Info: h2725194.stratoserver.net; posting-host="c65e12553d8b3bfd0ae8fed802fed64f"; logging-data="5833"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mn2n3fO/nV7qIbF4xCVQc" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 Cancel-Lock: sha1:45rXtK/iSk1tIOmyrhEs3FEBpBY= In-Reply-To: <7945bc92-fb5f-44df-9699-bec065a7f4ed@googlegroups.com> Content-Language: en-US Xref: csiph.com comp.lang.java.programmer:38282 On 5/23/2018 10:55 AM, Eric Douglas wrote: > On Tuesday, May 22, 2018 at 6:22:08 PM UTC-4, Andreas Leitgeb wrote: >> Eric Sosman wrote: >>> It doesn't seem to me that "Dump it in a text display" is a >>> reasonable way to present this quantity of data. Nobody can read >>> that much text. > > I don't know what it's limits are on the amount of text it can hold at one time. On a large file I'm normally just looking at the beginning and/or the end, and I'd like to add a search function. If for some reason we need to read the whole thing we may need to enlist some congressional aides. If we're just jumping around, the JScrollPane seems efficient thus far. Okay, it's your program, do as you like. I'll offer just one more back-of-the-envelope calculation in one final attempt to dissuade you from your folly: - Assume three million pages' worth of content (or maybe six million if it's a one-byte-per-character encoding) - Assume a screen height of around 2000 pixels (mine is about half that, but perhaps you've got Big Hardware) - It follows that moving the scroll thumb by one pixel will move the view by 3000000/2000 = 1500 pages. - ... that is, to advance by one page you should move the scroll thumb by two-thirds of one millipixel. Have fun navigating! -- esosman@comcast-dot-net.invalid Nine hundred seventy-three days to go.