8039432: demo/jvmti/mtrace/TraceJFrame.java can't connect to X11
authorsla
Fri, 25 Apr 2014 14:53:12 +0200
changeset 24118 e77215028389
parent 24117 19c6d44b6550
child 24119 9af809e02625
8039432: demo/jvmti/mtrace/TraceJFrame.java can't connect to X11 Reviewed-by: dcubed, mgronlun
jdk/test/demo/jvmti/mtrace/TraceJFrame.java
--- 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;