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


Groups > comp.lang.java.programmer > #31690

Re: JScrollPane not scrolling smoothly on fast computer

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Knute Johnson <nospam@rabbitbrush.frazmtn.com>
Newsgroups comp.lang.java.programmer
Subject Re: JScrollPane not scrolling smoothly on fast computer
Date Tue, 12 May 2015 19:56:47 -0700
Organization A noiseless patient Spider
Lines 50
Message-ID <miuef9$ghu$1@dont-email.me> (permalink)
References <miljjg$frc$1@dont-email.me> <f9742573-07d0-4066-a3aa-cd417e3b5f9b@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 13 May 2015 02:55:37 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="9b3fcb0d22708969e4dc99e7aa0ef1f9"; logging-data="16958"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19d5QaLrBG+0kd8fNYMyvjv"
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
In-Reply-To <f9742573-07d0-4066-a3aa-cd417e3b5f9b@googlegroups.com>
Cancel-Lock sha1:EkmcIE1DHR+YkhfrgB4AsRTRbdg=
Xref csiph.com comp.lang.java.programmer:31690

Show key headers only | View raw


On 5/11/2015 12:59, e.d.programmer@gmail.com wrote:
> On Saturday, May 9, 2015 at 2:29:14 PM UTC-4, Knute Johnson wrote:
>> I've got some software running at a client's place for almost 10
>> years. It was running under Windows XP and I think must have been
>> originally compiled with Java 5 and then later Java 6.  The program
>> had been running fine for years but the hardware is starting to
>> give out.  At one site we upgraded to a modern desktop with Windows
>> 7.  We started noticing some issues with JScrollPanes with lots of
>> JComponents in them not scrolling smoothly.  The new computers were
>> considerably more powerful than their predecessors but the
>> performance sucked.  We were forced to use Java 7 or new so we used
>> 8 but were still not happy with performance but couldn't figure out
>> what to do about it.
>>
>> Just this week we are preparing a new desktop to run some new
>> software and the old software as some systems are being combined
>> and upgraded. The old software that was running under XP on an
>> older desktop now started having the scrolling issues on the new
>> computer.  The new computer is 4 core, lots of memory, much faster
>> processor and running Windows 8.  This was driving everybody crazy
>> so I started looking around to see if I could find something that
>> would fix it.
>>
>> In the end, it turns out that Java 8 running on Windows 8 on this
>> computer was not using the OpenGL pipeline for 2D drawing.  I
>> don't really understand how all that works but manually turning it
>> on on the command line fixed our sticky scrolling problem.  Just
>> add -Dsun.java2d.opengl=True to the command line and it's back to
>> normal.
>>
>> If anybody knows anything about how the DirectDraw and OpenGL and
>> all this works or can point me to a good article about it on Java 8
>> I would appreciate it greatly.
>>
>> Hopefully this will help somebody with the same problem avoid all
>> the hassle and blame that their software is bad in the future.
>>
>> --
>>
>> Knute Johnson
>
> As far as I know all my scrollpanes are scrolling smooth.  Do you
> have sample code that shows a problem?
>

I've not been able to duplicate it, just fix it.

-- 

Knute Johnson

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

JScrollPane not scrolling smoothly on fast computer Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2015-05-09 11:29 -0700
  Re: JScrollPane not scrolling smoothly on fast computer e.d.programmer@gmail.com - 2015-05-11 12:59 -0700
    Re: JScrollPane not scrolling smoothly on fast computer Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2015-05-12 19:56 -0700
  Re: JScrollPane not scrolling smoothly on fast computer Jim Hicks <james.hicks78@gmail.invalid> - 2015-05-20 15:20 +0000
    Re: JScrollPane not scrolling smoothly on fast computer Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2015-05-20 10:45 -0700

csiph-web