How can I check if the current thread is the event dispatching thread?

Is there a way to detect if the current thread is the EVT? Something like SwingUtilities.isEventDispatchThread or SWT's display.getThread()?

0

ApplicationManager.getApplication().isDispatchThread()

See also other threads related methods there.

0
Avatar
Permanently deleted user

great, thanks

0

请先登录再写评论。