| isDispatchThread |
() |
yoix.awt |
| |
Returns
1
if the calling thread is the one used to dispatch AWT events and
0
otherwise.
| |
| Example: |
The program
import yoix.*.*;
f(int arg) {
printf("arg=%d, ", arg);
printf("isDispatchThread=%d\n", isDispatchThread());
}
f(1);
invokeLater(f, 2);
prints
arg=1, isDispatchThread=0
arg=2, isDispatchThread=1
on standard output, because the function is executed once in the
current thread and then again in the thread used to dispatch AWT
events.
| | |
| Return: |
int
| | |
| See Also: |
ActionEvent,
AdjustmentEvent,
CaretEvent,
ChangeEvent,
ComponentEvent,
DragGestureEvent,
DragSourceEvent,
DropTargetEvent,
Event,
FocusEvent,
HyperlinkEvent,
InvocationEvent,
invokeLater,
ItemEvent,
KeyEvent,
ListSelectionEvent,
MouseEvent,
MouseWheelEvent,
PaintEvent,
postEvent,
TextEvent,
TreeSelectionEvent,
WindowEvent
|
|
Yoix is a registered trademark of AT&T Intellectual Property.
|