In Swing you can get "the other Component involved in this focus change" from this: getOppositeComponent. There does not seem to be a similar call in SWT, does anyone have a workaround or fix for this?
TIA
In Swing you can get "the other Component involved in this focus change" from this: getOppositeComponent. There does not seem to be a similar call in SWT, does anyone have a workaround or fix for this?
TIA
There is no equivalent for that in SWT, but you can try to use the following lists on both components:
public class OppositeAwareFocusListener implements FocusListener {
Widget opposite;
public void focusGained(FocusEvent e) {
..
}
public void focusLost(FocusEvent e) {
this.opposite = e.widget;
}
}