Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31659 > unrolled thread
| Started by | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
|---|---|
| First post | 2015-05-09 11:29 -0700 |
| Last post | 2015-05-20 10:45 -0700 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.java.programmer
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
| From | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
|---|---|
| Date | 2015-05-09 11:29 -0700 |
| Subject | JScrollPane not scrolling smoothly on fast computer |
| Message-ID | <miljjg$frc$1@dont-email.me> |
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
[toc] | [next] | [standalone]
| From | e.d.programmer@gmail.com |
|---|---|
| Date | 2015-05-11 12:59 -0700 |
| Message-ID | <f9742573-07d0-4066-a3aa-cd417e3b5f9b@googlegroups.com> |
| In reply to | #31659 |
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?
[toc] | [prev] | [next] | [standalone]
| From | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
|---|---|
| Date | 2015-05-12 19:56 -0700 |
| Message-ID | <miuef9$ghu$1@dont-email.me> |
| In reply to | #31671 |
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
[toc] | [prev] | [next] | [standalone]
| From | Jim Hicks <james.hicks78@gmail.invalid> |
|---|---|
| Date | 2015-05-20 15:20 +0000 |
| Message-ID | <sD17x.521099$zE7.124344@fx40.am4> |
| In reply to | #31659 |
On Sat, 09 May 2015 11:29:05 -0700, Knute Johnson wrote: > ... issues with JScrollPanes with lots of JComponents in them > not scrolling smoothly. ... >... 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. > ... Hopefully this will help somebody with the same problem avoid all the > hassle and blame that their software is bad in the future. Thank you, Knute. Thank you, thank you, thank you. My problem was a little different: the scrolling was quite smooth but there were artifacts left behind on the screen as if parts of the image were not being re-painted properly. Your suggestion has made this problem go away. Woohoo! -- Jim Hicks
[toc] | [prev] | [next] | [standalone]
| From | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
|---|---|
| Date | 2015-05-20 10:45 -0700 |
| Message-ID | <mjih57$oem$1@dont-email.me> |
| In reply to | #31725 |
On 5/20/2015 08:20, Jim Hicks wrote: > On Sat, 09 May 2015 11:29:05 -0700, Knute Johnson wrote: > >> ... issues with JScrollPanes with lots of JComponents in them >> not scrolling smoothly. ... > >> ... 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. > >> ... Hopefully this will help somebody with the same problem avoid all the >> hassle and blame that their software is bad in the future. > > Thank you, Knute. Thank you, thank you, thank you. > > My problem was a little different: the scrolling was quite smooth but there were > artifacts left behind on the screen as if parts of the image were not being > re-painted properly. > > Your suggestion has made this problem go away. > > Woohoo! > You are very welcome! -- Knute Johnson
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web