GraphicsEnvironment.isHeadless()
method and throw HeadlessException if the latter returns
true.
GraphicsEnvironment#isHeadless
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Hides java. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | HeadlessException(String
the error message msg)Create a new instance with the specified detailed error message. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the detail message string of thisHeadlessException
instance (which may be null).Overrides java. Returns the detail message string of this |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.4 for interoperability. | |
| HeadlessException | back to summary |
|---|---|
| public HeadlessException() Constructs a new
For such | |
| HeadlessException | back to summary |
|---|---|
| public HeadlessException(String msg) Create a new instance with the specified detailed error message. For some platforms the default headless error message may be added at the end of the specified message. The text of the default headless message may depend on whether the GraphicsEnvironment is in fact headless. That is, the default headless message is both system and environmentally dependent.
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Returns the detail message string of this
| |