| Summary: | java.awt.Headless exception when running with Java7 | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Alexander Nyßen <nyssen> |
| Component: | GEF FX | Assignee: | Alexander Nyßen <nyssen> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | 3.10.0 (Mars) M7 | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
|
Description
Alexander Nyßen
Interestingly, when starting an Eclipse (Mars M6) runtime with Java7, GraphicsEnvironment.isHeadless() returns true, while using Java8 it returns false. (In reply to Alexander Nyßen from comment #1) > Interestingly, when starting an Eclipse (Mars M6) runtime with Java7, > GraphicsEnvironment.isHeadless() returns true, while using Java8 it returns > false. It seems that in case of Java7, the system property "java.awt.headless" is set to true, while in case of Java8 it is unset. Adjusted FXUtils#getMouseLocation() to adjust the "awt.headless" property value before calling MouseInfo#getPointerInfo() in case it is set to "true". The value of "awt.headless" will be restored to the prior to calling FXUtils#getMouseLocation() in case it was set. Resolving as fixed in 3.10.0M7. |