Package javax.swing

Examples of javax.swing.JComponent.requestFocusInWindow()


      EventQueue.invokeLater(new Runnable() {
        public void run () {
          JComponent focusComponent = component;
          if (focusComponent instanceof JSpinner)
            focusComponent = ((JSpinner.DefaultEditor)((JSpinner)component).getEditor()).getTextField();
          focusComponent.requestFocusInWindow();
        }
      });
      dialog.setVisible(true);
      return dialog.okPressed;
    }
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.