lock
Locks the entire AWT for synchronization purposes.
Since
1.4
Lock the surface of the target component for native rendering. When finished drawing, the surface must be unlocked with unlock).
This function returns a bitmask with one or more of the following values: JAWT.LOCK_ERROR, JAWT.LOCK_CLIP_CHANGED, JAWT.LOCK_BOUNDS_CHANGED, JAWT.LOCK_SURFACE_CHANGED.