میتونید با اضافه کردن دو خط زیر در MComponent :
abstract public void lostFocus();
abstract public void gotFocus();
و تغییر دادن تابع changeFocus در MFocusManager به شکل زیر:
protected void changeFocus(int offset) {
container.getComponent(focusedComponentRank).lostFocus();
// notify currently focused component of change
MFocusEvent event = createFocusEvent(focusedComponentRank,MFocusEvent.FOCUS_LOST);
container.getComponent(focusedComponentRank).processFocusEvent( event );
focusedComponentRank += offset;
// notify newly focused component of change
event = createFocusEvent(focusedComponentRank,MFocusEvent.FOCUS_GAINED);
container.getComponent(focusedComponentRank).processFocusEvent(event);
container.getComponent(focusedComponentRank).gotFocus();
container.repaint(); // update display
} // changeFocus
(دوخط اضافه شده) توابع lostFocus و getFocus رو به Component هاتون اضافه کنید تا قبل از ورود به Componenet و بعد از خروج از اونها بتونید کارهای دلخواهتون رو انجام بدید