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


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

JScrollPane not scrolling smoothly on fast computer

From Knute Johnson <nospam@rabbitbrush.frazmtn.com>
Newsgroups comp.lang.java.programmer
Subject JScrollPane not scrolling smoothly on fast computer
Date 2015-05-09 11:29 -0700
Organization A noiseless patient Spider
Message-ID <miljjg$frc$1@dont-email.me> (permalink)

Show all headers | View raw


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

Back to comp.lang.java.programmer | Previous | Next — 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