private boolean grant( FocusRequest request, Component component ){ FocusRequest next; try{ onFocusing = true; next = request.grant( component ); } finally{ onFocusing = false; } if( next != null ){ boolean accepted = request.getSource() == next.getSource() && component == next.getComponent(); Request nextRequest = new Request( next, accepted ); return nextRequest.enqueue(); } return true; }
private boolean grant( FocusRequest request, Component component ){ FocusRequest next; try{ onFocusing = true; next = request.grant( component ); } finally{ onFocusing = false; } if( next != null ){ boolean accepted = request.getSource() == next.getSource() && component == next.getComponent(); Request nextRequest = new Request( next, accepted ); return nextRequest.enqueue(); } return true; }