Package java.awt

Examples of java.awt.Component.requestFocus()


            defaultComponent = cycleRoot.getFocusTraversalPolicy().getDefaultComponent(this);
        }
        if (defaultComponent == null) {
            return false;
        }
        defaultComponent.requestFocus();
        return true;
    }

    public boolean isManagingFocus() {
        return false;
View Full Code Here


        }

        Object selectedValue = pane.getValue();

        if (fo != null && fo.isShowing()) {
            fo.requestFocus();
        }
        if (selectedValue == null) {
            return CLOSED_OPTION;
        }
        if (options == null) {
View Full Code Here

            } catch (java.beans.PropertyVetoException e) {
            }
        }

        if (fo != null && fo.isShowing()) {
            fo.requestFocus();
        }
        Object value = pane.getInputValue();

        if (value == UNINITIALIZED_VALUE) {
            return null;
View Full Code Here

                    inputMap.remove(KeyStroke.getKeyStroke(dka, 0, true));
                    inputMap.remove(KeyStroke.getKeyStroke(KeyEvent.VK_ALT, 0, true));
                }
                if (labelFor instanceof Container &&
                        ((Container) labelFor).isFocusCycleRoot()) {
                    labelFor.requestFocus();
                } else {
                    SwingUtilities2.compositeRequestFocus(labelFor);
                }
            }
        }
View Full Code Here

          FocusEvent lost = new FocusEvent(focusOwner, FocusEvent.FOCUS_LOST);
          FocusEvent gained = new FocusEvent(focusOwner, FocusEvent.FOCUS_GAINED);
          window.dispatchEvent(lost);
          window.dispatchEvent(gained);
          window.dispatchEvent(lost);
          focusOwner.requestFocus();
        }
      }
    });

    _objTreePanel = new ObjectTreePanel(getSession());
View Full Code Here

        }

        Object selectedValue = pane.getValue();

        if (fo != null && fo.isShowing()) {
            fo.requestFocus();
        }
        if (selectedValue == null) {
            return CLOSED_OPTION;
        }
        if (options == null) {
View Full Code Here

            } catch (java.beans.PropertyVetoException e) {
            }
        }

        if (fo != null && fo.isShowing()) {
            fo.requestFocus();
        }
        Object value = pane.getInputValue();

        if (value == UNINITIALIZED_VALUE) {
            return null;
View Full Code Here

                    inputMap.remove(KeyStroke.getKeyStroke(label.getDisplayedMnemonic(), ActionEvent.ALT_MASK, true));
                    inputMap.remove(KeyStroke.getKeyStroke(KeyEvent.VK_ALT, 0, true));
                }
                if (labelFor instanceof Container &&
                        ((Container) labelFor).isFocusCycleRoot()) {
                    labelFor.requestFocus();
                } else {
                    SwingUtilities2.compositeRequestFocus(labelFor);
                }
            }
        }
View Full Code Here

      JTextField t = (JTextField) c;
      t.selectAll();
    }
   
    if (c != null)
      c.requestFocus();
   
    return result;
  }
 
}
View Full Code Here

            default:
                return;
        }

        if (postTarget instanceof Graphic || postTarget.isEnabled()) {
            postTarget.requestFocus();
            // We post a double click event when the button is pressed and this control can
            // fire double clicks and the click count is even.
            boolean canDoubleClick = ClickListener.canFireDoubleClickEvents(postTarget);
            if (e.getButton() == MouseEvent.BUTTON1 && canDoubleClick && ((e.getClickCount() & 1) == 0)) {
                if (ListViewListenerHelper.isMemberOfListView(postTarget)){
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.