public static void forceFocusToAccept() {
		KeyboardFocusManager focusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager();
		Component focus = focusManager.getPermanentFocusOwner();
		if (focus == null) {
			focus = focusManager.getFocusOwner();
		}
		if (focus != null) {
			FocusListener[] listeners = focus.getListeners(FocusListener.class);
			FocusEvent event = new FocusEvent(focus, FocusEvent.FOCUS_LOST, false, null);
			for (FocusListener listener : listeners) {
				listener.focusLost(event);
			}
			event = new FocusEvent(focus, FocusEvent.FOCUS_GAINED, false, null);
			for (FocusListener listener : listeners) {
				listener.focusGained(event);
			}
		}
	}