* This method returns the traversal reason on the last focus change. This can be any of the FC_... constants in
* the Constants class.
* @return
*/
public static int getTraversalReason() {
KeyboardFocusManager currentMgr = KeyboardFocusManager.getCurrentKeyboardFocusManager();
if (currentMgr instanceof ForteKeyboardFocusManager)
return ((ForteKeyboardFocusManager)currentMgr).getReasonCode();
else {
IllegalStateException errorVar = new IllegalStateException("A ForteKeyboardFocusManager has not been installed for this thread, so the traveral reason cannot be determined: " + Thread.currentThread());
ErrorMgr.addError(errorVar);