mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-21 02:48:02 +00:00
8039432: demo/jvmti/mtrace/TraceJFrame.java can't connect to X11
Reviewed-by: dcubed, mgronlun
This commit is contained in:
parent
ec7f5007ee
commit
a04c05225d
@ -36,7 +36,7 @@ import java.awt.GraphicsEnvironment;
|
||||
|
||||
public class TraceJFrame {
|
||||
public static void main(String args[]) throws Exception {
|
||||
if (GraphicsEnvironment.getLocalGraphicsEnvironment().isHeadlessInstance()) {
|
||||
if (GraphicsEnvironment.isHeadless()) {
|
||||
System.out.println("JFrame test was skipped due to headless mode");
|
||||
} else {
|
||||
DemoRun demo;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user