8039432: demo/jvmti/mtrace/TraceJFrame.java can't connect to X11
Reviewed-by: dcubed, mgronlun
--- a/jdk/test/demo/jvmti/mtrace/TraceJFrame.java Fri Apr 25 08:55:34 2014 +0200
+++ b/jdk/test/demo/jvmti/mtrace/TraceJFrame.java Fri Apr 25 14:53:12 2014 +0200
@@ -36,7 +36,7 @@
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;