本文整理了Java中javax.swing.JCheckBox.requestFocusInWindow()
方法的一些代码示例,展示了JCheckBox.requestFocusInWindow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JCheckBox.requestFocusInWindow()
方法的具体详情如下:
包路径:javax.swing.JCheckBox
类名称:JCheckBox
方法名:requestFocusInWindow
暂无
代码示例来源:origin: sdedit/sdedit
@Override
public void focus() {
checkBox.requestFocusInWindow();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-swingapp
@Override
public void keyPressed(KeyEvent ev) {
win.setVisible(false);
win.dispose();
resourceCheckBox.requestFocusInWindow();
}
});
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-swingapp
@Override
public void mousePressed(MouseEvent ev) {
win.setVisible(false);
win.dispose();
resourceCheckBox.requestFocusInWindow();
}
});
代码示例来源:origin: org.zaproxy/zap
checkBoxEnabledProtocol.requestFocusInWindow();
throw new IllegalArgumentException(
Constant.messages.getString("generic.options.panel.security.protocols.error.no.protocols.selected"));
checkBoxEnabledProtocol.requestFocusInWindow();
throw new IllegalArgumentException(
Constant.messages.getString("generic.options.panel.security.protocols.error.just.sslv2hello.selected"));
代码示例来源:origin: RPTools/maptool
@Override
public void stateChanged(ChangeEvent e) {
final JTabbedPane source = (JTabbedPane) e.getSource();
final String tabName = source.getTitleAt(source.getSelectedIndex());
if (jbLaunch.isEnabled()) {
jbLaunch.requestFocusInWindow();
} else {
if (tabName.equals(CopiedFromOtherJars.getText("msg.tab.basic"))) { //$NON-NLS-1$
jbMTJar.requestFocusInWindow();
} else if (tabName.equals(CopiedFromOtherJars.getText("msg.tab.language"))) { //$NON-NLS-1$
// This should work as long as there's at least one language in the list.
langGroup.getElements().nextElement().requestFocusInWindow();
} else if (tabName.equals(CopiedFromOtherJars.getText("msg.tab.advanced"))) { //$NON-NLS-1$
jcbConsole.requestFocusInWindow();
jtfArgs.setText(extraArgs);
} else {
jcbEnableAssertions.requestFocusInWindow();
}
}
}
});
内容来源于网络,如有侵权,请联系作者删除!