Java GraphicsEnvironment .isHeadlessInstance ()
Syntax
GraphicsEnvironment.isHeadlessInstance() has the following syntax.
public boolean isHeadlessInstance()
Example
In the following code shows how to use GraphicsEnvironment.isHeadlessInstance() method.
import java.awt.GraphicsEnvironment;
/* w w w.j ava2 s.c o m*/
public class Main {
public static void main(String[] args) {
System.out.println(GraphicsEnvironment.getLocalGraphicsEnvironment()
.isHeadlessInstance());
}
}
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »