changeset 24118 | e77215028389 |
parent 23010 | 6dadb192ad81 |
child 24517 | 2289550a4152 |
--- 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;