Package javax.swing

Examples of javax.swing.JRootPane.requestFocus()


      inputMap.put( KeyStroke.getKeyStroke( KeyEvent.VK_ESCAPE, 0 ), "lost" );
      actionMap.put( "lost", new AbstractAction() {
        public void actionPerformed( ActionEvent e )
        {
          final JRootPane rp = SwingUtilities.getRootPane( IOTextField.this );
          if( rp != null ) rp.requestFocus();
        }
      });
      for( int i = 0; i < USERPATHS_NUM; i++ ) {
        s = "sudir" + i;
        inputMap.put( KeyStroke.getKeyStroke( KeyEvent.VK_NUMPAD1 + i, myMeta + InputEvent.ALT_MASK ), s );
View Full Code Here


  }

  public void actionPerformed( ActionEvent e )
  {
    final JRootPane rp = SwingUtilities.getRootPane( c );
    if( rp != null ) rp.requestFocus();
  }
}
View Full Code Here

                continue;
            }
            final JRootPane pane = SwingUtilities.getRootPane(getRootPaneChild(item));
            if (pane != null) {
                Component focusOwner = getFocusManager().getFocusOwner();
                if (pane.requestFocus(true)) {
                    previousFocusOwner = focusOwner;
                    focusedRootPane = pane;
                    MenuKeyBindingProcessor.attach();
                    if (pane.getJMenuBar() == null) {
                        pane.addKeyListener(createRootPaneKeyListener());
View Full Code Here

                continue;
            }
            final JRootPane pane = SwingUtilities.getRootPane(getRootPaneChild(item));
            if (pane != null) {
                Component focusOwner = getFocusManager().getFocusOwner();
                if (pane.requestFocus(true)) {
                    previousFocusOwner = focusOwner;
                    focusedRootPane = pane;
                    MenuKeyBindingProcessor.attach();
                    if (pane.getJMenuBar() == null) {
                        pane.addKeyListener(createRootPaneKeyListener());
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.