-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
1.4.0
-
Cause Known
-
generic
-
generic
Name: osR10079 Date: 01/09/2003
All static methods of EventQueue (such as invokeAndWait()
and invokeLater()) use system event queue and system toolkit. This
means that an application which uses these methods won't work in
headless environment with non-headless toolkit.
For these methods it is not immediately obvious that they can't
work in headless environment (i.e. without valid display) but not in
headless mode. Users may think that these methods do not actually
require a display. Please see bug id 4798211 (EventQueue.invokeLater
requires use of X11) for the example of difficulties that the users
face on that way.
In JavaDoc comments for these methods we need to somehow inform the
user that if one wants to call these methods in headless environment,
it must be done in headless mode.
======================================================================
- relates to
-
JDK-6232998 java.awt.GraphicsEnvironment.isHeadless() needlessly requires a mouse
-
- Open
-
-
JDK-4798211 EventQueue.invokeLater requires use of X11
-
- Closed
-