List of usage examples for javax.swing InputVerifier shouldYieldFocus
@Deprecated(since = "9") public boolean shouldYieldFocus(JComponent input)
From source file:com.projity.dialog.FieldDialog.java
/** * On pressing enter key, check any unvalidated component *//*from ww w . j a v a 2s.co m*/ public void onOk() { if (dirtyComponent != null) { InputVerifier verifier = dirtyComponent.getInputVerifier(); if (!verifier.shouldYieldFocus(dirtyComponent)) return; } super.onOk(); }