I have a rather serious problem running my Swing application on Linux distribution. It is a rendering wrapper, which handles the rendering of images contained in custom objects. The objects are stored in an ArrayList
buffer, and painted onto a JPanel
by iterating through the buffer and using the 'Graphics' of the panel's paintComponent
. The flickering occurs as visible objects (buffer objects) are not being rendered at random. I have tried logging any changes in visibility status for the objects, but they all show as visible, however, it seems as if the paintComponent
is omitting certain objects. I am employing double buffering, and therefore I assume that the issue is not related to buffering.
Furthermore, I would like to emphasize that application in question runs flawlessly on both OSX and Windows, but not on Linux distributions such as Debian and Red Hat.
Important: I am using OpenJDK 7 on Debian, while the official Java 8 distribution is used both on OSX and Windows.
Please comment for clarification or more information if needed.