Examples of requestFocus()


Examples of javax.swing.text.JTextComponent.requestFocus()

    private void startEditing() {
        JTextComponent textField = (JTextComponent) combo.getEditor().getEditorComponent();

        combo.setEditable(true);

        textField.requestFocus();

        String text = initialEditValue;
        if (initialEditValue == null) {
            text = ""; // will revert to last valid value if invalid
        }
View Full Code Here

Examples of jfxtras.scene.control.CalendarPicker.requestFocus()

    // show it just below the textfield
    textField.setDisable(true);
    lPopup.show(textField, NodeUtil.screenX(getSkinnable()), NodeUtil.screenY(getSkinnable()) + textField.getHeight());

    // move the focus over   
    calendarPicker.requestFocus(); // TODO: not working
  }
}
View Full Code Here

Examples of lcmc.cluster.ui.ClusterTab.requestFocus()

                            @Override
                            public void run() {
                                final ClusterTab clusterTab = cluster.getClusterTab();
                                if (clusterTab != null) {
                                    clusterTab.addClusterView();
                                    clusterTab.requestFocus();
                                }
                            }
                        });
                    }
                };
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.gui.HtmlViewerSheet.requestFocus()

      URL url = _file.toURI().toURL();
      FileViewerFactory factory = FileViewerFactory.getInstance();
      HtmlViewerSheet viewer = factory.getViewer(_app.getMainFrame(), url);
      viewer.setVisible(true);
      viewer.toFront();
      viewer.requestFocus();
    }
    catch (IOException ex)
    {
      final String msg = s_stringMgr.getString("ViewFileCommand.error.reading" + _file.getAbsolutePath());
      s_log.error(msg, ex);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.gui.session.SQLInternalFrame.requestFocus()

    SwingUtilities.invokeLater(new Runnable()
    {
      public void run()
      {
        sif.setVisible(true);
            sif.requestFocus();
      }
    });

    return sif;
  }
View Full Code Here

Examples of org.apache.pivot.wtk.CalendarButton.requestFocus()

    public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) {
        boolean consumed = super.mouseClick(component, button, x, y, count);

        CalendarButton calendarButton = (CalendarButton)getComponent();

        calendarButton.requestFocus();
        calendarButton.press();

        return consumed;
    }
View Full Code Here

Examples of org.apache.pivot.wtk.Checkbox.requestFocus()

    public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) {
        boolean consumed = super.mouseClick(component, button, x, y, count);

        Checkbox checkbox = (Checkbox)getComponent();

        checkbox.requestFocus();
        checkbox.press();

        return consumed;
    }
View Full Code Here

Examples of org.apache.pivot.wtk.ColorChooserButton.requestFocus()

    public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) {
        boolean consumed = super.mouseClick(component, button, x, y, count);

        ColorChooserButton colorChooserButton = (ColorChooserButton)getComponent();

        colorChooserButton.requestFocus();
        colorChooserButton.press();

        return consumed;
    }
View Full Code Here

Examples of org.apache.pivot.wtk.Component.requestFocus()

                final Button button = (Button)tabButtonBoxPane.get(selectedIndex);
                button.setSelected(true);

                Component selectedTab = tabPane.getTabs().get(selectedIndex);
                selectedTab.setVisible(true);
                selectedTab.requestFocus();

                ApplicationContext.queueCallback(new Runnable(){
                    @Override
                    public void run() {
                        button.scrollAreaToVisible(0, 0, button.getWidth(), button.getHeight());
View Full Code Here

Examples of org.apache.pivot.wtk.Component.requestFocus()

                            }

                            nextButton = row.get(columnIndex);
                        } while (!nextButton.isEnabled());

                        nextButton.requestFocus();
                        break;
                    }

                    case Keyboard.KeyCode.RIGHT: {
                        TablePane.Row row = calendarTablePane.getRows().get(rowIndex + 2);
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.