diff -r 19c6d44b6550 -r e77215028389 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;