List of usage examples for javax.swing JComponent setVerifyInputWhenFocusTarget
@BeanProperty(description = "Whether the Component verifies input before accepting focus.") public void setVerifyInputWhenFocusTarget(boolean verifyInputWhenFocusTarget)
From source file:com.aw.swing.mvp.Presenter.java
protected void registerFwActions() { boolean existCancel = actionRsr.getActions() .containsKey(ActionIdentifier.getActionIdentifier(ActionNames.ACTION_CANCEL)); if (!existCancel) { com.aw.swing.mvp.action.Action cancelAction = new CancelAction(); if (this instanceof FindPresenter || !showCancelMsgConfirmation) { cancelAction.setConfirmMsg(""); }//www. j a v a 2s . c om JComponent jComponent = (JComponent) getIpView().getComponent("btnCancel"); if (jComponent != null) { jComponent.setVerifyInputWhenFocusTarget(false); } actionRsr.registerAction(ActionNames.ACTION_CANCEL, cancelAction); } if (ViewMode.MODE_PICK.equals(getViewMode())) { actionRsr.registerAction(ActionNames.ACTION_PICK_SELECT, new PickSelectItemAction(), getGridProvider()); } }