boolean (Object component) { if (!focusinside) { //java requestFocus(); //java } //java if (focusowner != component) { Object focused = focusowner; focusowner = component; if (focused != null) { //mouseEvent(null, FocusEvent.FOCUS_LOST, focused, null, null); repaint(focused); //focusGained(component); } return true; } return false; }