本文整理了Java中javax.swing.JComboBox.requestFocusInWindow()
方法的一些代码示例,展示了JComboBox.requestFocusInWindow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JComboBox.requestFocusInWindow()
方法的具体详情如下:
包路径:javax.swing.JComboBox
类名称:JComboBox
方法名:requestFocusInWindow
暂无
代码示例来源:origin: groovy/groovy-core
FIND_FIELD.requestFocusInWindow();
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking
@Override
public boolean requestFocusInWindow() {
return findCombo.requestFocusInWindow();
}
代码示例来源:origin: Multibit-Legacy/multibit-hd
@Override
public void afterShow() {
alertSoundYesNoComboBox.requestFocusInWindow();
}
代码示例来源:origin: Multibit-Legacy/multibit-hd
@Override
public void requestInitialFocus() {
recipientComboBox.requestFocusInWindow();
}
代码示例来源:origin: freeplane/freeplane
@Override
public void keyPressed(final KeyEvent pEvent) {
if (pEvent.getKeyCode() == KeyEvent.VK_DOWN) {
mFilterTextReplaceField.requestFocusInWindow();
}
}
});
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-javascript2-debug-ui
private void conditionCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_conditionCheckBoxActionPerformed
conditionComboBox.setEnabled(conditionCheckBox.isSelected());
if (conditionCheckBox.isSelected()) {
conditionComboBox.requestFocusInWindow();
}
}//GEN-LAST:event_conditionCheckBoxActionPerformed
代码示例来源:origin: org.japura/japura-gui
@Override
public void focusGained(FocusEvent e) {
getComboBox().requestFocusInWindow();
}
});
代码示例来源:origin: freeplane/freeplane
@Override
public void keyPressed(final KeyEvent pEvent) {
if (pEvent.getKeyCode() == KeyEvent.VK_DOWN) {
tableView.requestFocusInWindow();
}
else if (pEvent.getKeyCode() == KeyEvent.VK_UP) {
mFilterTextSearchField.requestFocusInWindow();
}
}
});
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-debugger-common2
@Override
public void requestActive() {
super.requestActive();
if (exprList != null) {
exprList.requestFocusInWindow();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-debugger-common2
@Override
public void requestActive() {
super.requestActive();
controlAddressCombo.requestFocusInWindow();
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets
/**
* Focus combo only if autoFocus ui property is on.
*
* @since 2.8.5
*/
public void focusCombo() {
if (ui.isAutoFocus()) {
ui.combobox.requestFocusInWindow();
}
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets
/**
* Focus combo only if autoFocus ui property is on.
*
* @since 2.8.5
*/
public void focusCombo() {
if (ui.isAutoFocus()) {
ui.combobox.requestFocusInWindow();
}
}
代码示例来源:origin: org.zaproxy/zap
@Override
public boolean validateFields() {
if (sessionsComboBox.getSelectedIndex() < 0) {
JOptionPane.showMessageDialog(this,
Constant.messages.getString("authentication.method.manual.dialog.error.nosession.text"),
Constant.messages.getString("authentication.method.manual.dialog.error.title"),
JOptionPane.WARNING_MESSAGE);
sessionsComboBox.requestFocusInWindow();
return false;
}
return true;
}
代码示例来源:origin: org.zaproxy/zap
@Override
public void validateFields() throws IllegalStateException {
if (this.loadedScript == null) {
this.scriptsComboBox.requestFocusInWindow();
throw new IllegalStateException(
Constant.messages
.getString("authentication.method.script.dialog.error.text.notLoadedNorConfigured"));
}
this.dynamicFieldsPanel.validateFields();
}
代码示例来源:origin: GoldenGnu/jeveassets
private void addSingleton() {
singletonPanel = new FilterPanel(this, FilterType.SINGLETON);
doLayout();
jSingleton.setEnabled(false);
singletonPanel.jSingleton.requestFocusInWindow();
}
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking
@Override
public boolean requestFocusInWindow() {
if (issue == null) {
return repositoryComboBox.requestFocusInWindow();
} else {
return getController().getComponent().requestFocusInWindow();
}
}
代码示例来源:origin: Multibit-Legacy/multibit-hd
@Override
public void afterShow() {
localSymbolComboBox.requestFocusInWindow();
displayAmountMaV.getView().updateView(getPanelModel().get().getConfiguration());
}
代码示例来源:origin: edu.toronto.cs.savant/savant-core
private void updateLocation(String ref, Range r) {
String s = String.format("%s: %,d - %,d", ref, r.getFrom(), r.getTo());
AnalyticsAgent.log(
new NameValuePair[]{
new NameValuePair("navigation-event", "moved"),
new NameValuePair("navigation-range", s)
});
locationField.setSelectedItem(s);
lengthLabel.setText(String.format("%,d", r.getLength()));
locationField.requestFocusInWindow();
locationField.getEditor().selectAll();
}
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking
private void focusFirstEnabledComponent() {
repositoryComboBox.requestFocusInWindow();
if(!repositoryComboBox.isEnabled()) {
newButton.requestFocusInWindow();
if(!newButton.isEnabled()) {
newButton.transferFocus();
}
}
}
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking
private void focusFirstEnabledComponent() {
repositoryComboBox.requestFocusInWindow();
if(!repositoryComboBox.isEnabled()) {
newButton.requestFocusInWindow();
if(!newButton.isEnabled()) {
newButton.transferFocus();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!