GeezerVison is showing docs.oracle.com — GraphicsEnvironment (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
java.awt
Class GraphicsEnvironment
-
-
Constructor Summary
Constructors
| Modifier |
Constructor |
Description |
protected |
GraphicsEnvironment() |
This is an abstract class and cannot be instantiated directly.
|
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
isHeadless
public static boolean isHeadless()
Tests whether or not a display, keyboard, and mouse can be
supported in this environment. If this method returns true,
a HeadlessException is thrown from areas of the Toolkit
and GraphicsEnvironment that are dependent on a display,
keyboard, or mouse.
- Returns:
true if this environment cannot support
a display, keyboard, and mouse; false
otherwise
- Since:
- 1.4
- See Also:
HeadlessException
-
isHeadlessInstance
public boolean isHeadlessInstance()
Returns whether or not a display, keyboard, and mouse can be
supported in this graphics environment. If this returns true,
HeadlessException will be thrown from areas of the
graphics environment that are dependent on a display, keyboard, or
mouse.
- Returns:
true if a display, keyboard, and mouse
can be supported in this environment; false
otherwise
- Since:
- 1.4
- See Also:
HeadlessException,
isHeadless()
-
getCenterPoint
public Point getCenterPoint()
throws HeadlessException
Returns the Point where Windows should be centered.
It is recommended that centered Windows be checked to ensure they fit
within the available display area using getMaximumWindowBounds().
- Returns:
- the point where Windows should be centered
- Throws:
HeadlessException - if isHeadless() returns true
- Since:
- 1.4
- See Also:
getMaximumWindowBounds()
Java™ Platform Standard Ed. 8
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|