Package java.awt

Examples of java.awt.Component.requestFocusInWindow()


          case XEMBED_FOCUS_LAST:
              SunToolkit.executeOnEventHandlerThread(target, new Runnable() {
                      public void run() {
                          Component comp = ((Container)target).getFocusTraversalPolicy().getLastComponent((Container)target);
                          if (comp != null) {
                              comp.requestFocusInWindow();
                          }
                      }});
              break;
        }
    }
View Full Code Here


          case XEMBED_FOCUS_FIRST:
              SunToolkit.executeOnEventHandlerThread(target, new Runnable() {
                      public void run() {
                          Component comp = ((Container)target).getFocusTraversalPolicy().getFirstComponent((Container)target);
                          if (comp != null) {
                              comp.requestFocusInWindow();
                          }
                      }});
              break;
          case XEMBED_FOCUS_LAST:
              SunToolkit.executeOnEventHandlerThread(target, new Runnable() {
View Full Code Here

          case XEMBED_FOCUS_LAST:
              SunToolkit.executeOnEventHandlerThread(target, new Runnable() {
                      public void run() {
                          Component comp = ((Container)target).getFocusTraversalPolicy().getLastComponent((Container)target);
                          if (comp != null) {
                              comp.requestFocusInWindow();
                          }
                      }});
              break;
        }
    }
View Full Code Here

            {
              focusSet = true;
              Component comp = getPreferredFocusComponent();
              if (comp != null)
              {
                comp.requestFocusInWindow();
              }
            }
          }
        };
        displayMessage(INFO_CTRL_PANEL_LOADING_PANEL_SUMMARY.get());
View Full Code Here

          updateComponentState();
          displayMainPanel();
          Component comp = getPreferredFocusComponent();
          if (comp != null)
          {
            comp.requestFocusInWindow();
          }
          if (isCallOKWhenVisible())
          {
            okClicked();
          }
View Full Code Here

                                tree.setSelectionRow(rows[0]);
                            }

                        }
                    }
                    boolean failed = comp.requestFocusInWindow();
                    int a = 5;
                }
            }
        }
        return bool;
View Full Code Here

    public void requestFocusInCell(final int row, final int col) {
        changeSelection(row, col, false, false);
        editCellAt(row, col);
        Component c = getEditorComponent();
        if (c!=null) {
            c.requestFocusInWindow();
            if ( c instanceof JTextComponent ) {
                 ( (JTextComponent)c ).selectAll();
            }
        }
        // there was a bug here - on older 1.6 Java versions Tab was not working
View Full Code Here

        boolean edit = super.editCellAt(row, column, e);
        Component comp = getEditorComponent();
        if( edit && e instanceof KeyEvent && ((KeyEvent) e).getModifiers()==0
            && comp instanceof JComboBox ) {
          ((JComboBox) comp).setPopupVisible(true);
          comp.requestFocusInWindow();
        }
        return edit;
      }
    };
//    table.setPreferredScrollableViewportSize(table.getPreferredSize());
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.