Duplicate :
|
|
Relates :
|
|
Relates :
|
AWT focus subsystem is implemented in such a way that focus requests (requestFocus/requestFocusInWindow calls) are performed asynchronously. This implies that developers must never assume that a component becomes the focus owner until this component receives a FOCUS_GAINED event. This is reflected in our spec. Unfortunetely such an implementation complicates development of an application as it often requires additional synchronization to be involved. Thus AWT should investigate an ability of making requesting focus synchronous.
|