Examples of grabFocus()


Examples of javax.swing.JTextField.grabFocus()

      }
      catch(ModificationException me) {
        if(showErrors) {
          JOptionPane.showOptionDialog(this.parent.visualEditor, me.getMessage(), "Error", JOptionPane.DEFAULT_OPTION, JOptionPane.ERROR_MESSAGE, null, null, null);

          jtf.grabFocus();
        }

        return false;
      }
    }
View Full Code Here

Examples of javax.swing.JTextField.grabFocus()

        }
        catch(ModificationException me) {
          if(showErrors) {
            JOptionPane.showOptionDialog(this.parent.visualEditor, me.getMessage(), "Error", JOptionPane.DEFAULT_OPTION, JOptionPane.ERROR_MESSAGE, null, null, null);

            jtf.grabFocus();
          }

          return false;
        }
      }
View Full Code Here

Examples of javax.swing.JTextField.grabFocus()

        if (showErrors) {
          JOptionPane.showOptionDialog(this.parent.visualEditor, me
              .getMessage(), "Error", JOptionPane.DEFAULT_OPTION,
              JOptionPane.ERROR_MESSAGE, null, null, null);

          jtf.grabFocus();
        }

        return false;
      }
    }
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.util.JTextFieldResizing.grabFocus()

            // add
            // prefix
            // ...
            prefixTF.setText("");
            namespaceTF.setText("");
            namespaceTF.grabFocus();
            newNamespace = "";
          }
        } else if (!this.oldValue.equals("") && newNamespace.equals("")) {
          final int choice = showPrefixRemovedOptionDialog();
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.util.JTextFieldResizing.grabFocus()

          } else if (choice == JOptionPane.CANCEL_OPTION) { // don't
            // remove
            // prefix
            // ...
            namespaceTF.setText(this.oldValue);
            namespaceTF.grabFocus();
            newNamespace = this.oldValue;
          }
        }

        this.oldValue = newNamespace;
View Full Code Here

Examples of org.openide.windows.TopComponent.grabFocus()

    /**
     * Obtain the scratch_padTopComponent instance. Never call {@link #getDefault} directly!
     */
    public static synchronized scratch_padTopComponent findInstance() {
        TopComponent win = WindowManager.getDefault().findTopComponent(PREFERRED_ID);
        win.grabFocus();
        if (win == null) {
            Logger.getLogger(scratch_padTopComponent.class.getName()).warning("Cannot find " + PREFERRED_ID + " component. It will not be located properly in the window system.");
            return getDefault();
        }
        if (win instanceof scratch_padTopComponent) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.