Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [albireo-dev] Relaxed isFocusable() check

Good point. It looks like I'll have to back out this change. Without caching the isFocusable values for each component (which sounds like too much work), it won't be possible to detect the unfocusable case and return false from setFocus/forceFocus.

Bruno Haible wrote:
Hi Gordon,

Previously it only looked at the top
level Swing component's isFocusable() method, but it really should look
at all children. If any child is focuable, it should return true, and it
should attempt to transfer focus.

Sounds semantically right. But now you call Container.getComponents() in
the SWT thread, outside the Swing thread. This can deadlock.

Bruno




Back to the top