Oracle bug 8014369
Click the Refresh button in the applet below several times. The components in the applet refresh only partially after some instances of pressing the Refresh button. This problem is seen in Java 8 for Macintosh build 88 in both Safari and Firefox, and in Safari on Java 7.0_21 (Firefox not tested there).
This behavior is intended to model in a simple context the behavior seen at this link, but of course it is possible that these are separate problems. A similar applet with the same refresh problem is at this link.
An engineer at Oracle added a comment to be the bug report in May 2013 and elaborated in an email "I traced down this bug and found that part of the issue is in the CAlayer implementation. The reason is simple: setNeedsDisplay is not followed by the drawInGLContext. The problem is not reproduced if I set layer.asynchronous from FALSE to YES." Although CAlayer is a MacOS component, the engineers at Apple have concluded that it is up to Oracle to fix this on their own.
Adding two two setVisible lines to the code as shown at this line doesn't fix the problem.
Source code for the applet is at this link.
The contact person about this test page is Mickey Segal. A listing of many Java resources is at this link