• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Rendering Graphic Issue

 
Daniel Sevier
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please Help Provide Solution to Java Graphics Issue:

(http://stackoverflow.com/questions/23780564/java-swing-graphics-glitch)
(http://stackoverflow.com/questions/22737535/swing-rendering-appears-broken-in-jdk-1-8-correct-in-jdk-1-7)
(http://stackoverflow.com/questions/16545982/java-swing-not-rendering-correctly)
________________________________________________________________________________

OS:
Win 7/Win 8
Mac OSX
(testing in Win 7)
________________________________________________________________________________

DESCRIPTION:

I currently have an application that has been built with the Nimbus (Java Swing).

(https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/nimbus.html)

There is a graphics rendering problem with Swing and/or Nimbus with JDK 1.7 and/or 1.8 (current).
Both text AND images seem to be affected.

Problem seems to happen when running java application and multiple windows overlay each other or if windows size is changed (maximized for example).

________________________________________________________________________________

PREVIOUSLY ATTEMPTED FIXES:

1. I have only found a workaround listed online (in one of these provided links here), regarding NVIDIA video cards, but I cannot use this, as I cannot as users to do this.


2. I also had my developer try this fix, but it was unsuccessful:

("In case the issue is caused by your graphics driver, setting one of the system properties below could help. Not quite sure if the props are still supported in Java 7.

sun.java2d.d3d=false
sun.java2d.ddoffscreen=false
sun.java2d.noddraw=true")


3. I tried rolling back my NVIDIA card to JDK 1.7 but had same problem.

-I don't think it's a spacing/layout issue, because it does not only happen when I change windows sizes, but also if I have multiple windows overlaying each other. Minimizing and maximizing the problematic windows (if possible) seems to temporarily correct the problem.

________________________________________________________________________________


So, how may this be fixed? I need this to just work with the most up to date version of java, which as of today is Version 8, Update 45 (JDK 01.8.45).

I don't know if Oracle is not supporting Swing and/or Nimbus or if this can be fixed and how.

 
Guillermo Ishi
Ranch Hand
Posts: 789
C++ Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ran the program in your first link and didn't have any problem, with either 1.7 or 1.8.
 
Daniel Sevier
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for testing it.

I also tried it out on another computer (running Win 7 and OSX) with no problems, and then I tried it in OSX on the computer in which I am having the problem in Win, and no problems. (I have 2 MacBook pros, running bootcamp). So, I don't know.

So, it seems I only have problems with this one computer running Win.

Not sure why. Maybe something with the NVIDIA card and Windows.

Here's the weird thing....The only time I see similar rendering glitches in when I run NVIDIA GeForce control panel. I contacted NVIDIA, but they did not know if java is used to run this program.

However, interesting observation.

Any ideas are appreciated

Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!