-
Bug
-
Resolution: Fixed
-
P2
-
11, 12, 13
-
b25
-
b24
-
x86_64
-
linux_ubuntu
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8225931 | 14 | Dmitry Markov | P2 | Resolved | Fixed | team |
JDK-8224595 | 11.0.5-oracle | Dmitry Markov | P2 | Closed | Fixed | b01 |
JDK-8227092 | 11.0.5 | Dmitry Markov | P2 | Resolved | Fixed | b01 |
Ubuntu Server with openssh, xvfb, x11vnc, Eclipse 2018-12, Java Version 11.0.1
A DESCRIPTION OF THE PROBLEM :
JFrames have no content in an XVFB / x11vnc environment with java 11. They open up and can be moved around, but they do not paint the content. The sample provided worked with a java 8 environment.
REGRESSION : Last worked in version 8u181
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
* Set up VM with above config, or use the container from: https://hub.docker.com/r/inetsoftware/ubuntu-x11-eclipse/
* Create a new Java Project with provided source code
* Download 11.0.1 JDK and set up as run configuration
* Run the Example
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
A Frame with the Text "tada" should open
ACTUAL -
An empty frame opens
---------- BEGIN SOURCE ----------
import javax.swing.JFrame;
import javax.swing.JLabel;
public class FrameCheck {
public static void main(String[] args) {
JFrame frame = new JFrame("FrameCheck");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400, 300);
frame.getContentPane().add(new JLabel("tada"));
frame.setVisible(true);
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
There is no workaround. Running the code with java 8 works as expected
FREQUENCY : always
- backported by
-
JDK-8225931 JFrame does not paint content in XVFB / X11vnc environment
- Resolved
-
JDK-8227092 JFrame does not paint content in XVFB / X11vnc environment
- Resolved
-
JDK-8224595 JFrame does not paint content in XVFB / X11vnc environment
- Closed
- relates to
-
JDK-8227921 Create an alternative fix for JDK-8214579, whose fix was backed out
- Open
-
JDK-8204931 Colors with alpha are painted incorrectly on Linux
- Resolved
-
JDK-8275843 Random crashes while the UI code is executed
- Resolved
-
JDK-8227392 Colors with alpha are painted incorrectly on Linux, after JDK-8214579
- Closed