本文整理了Java中javax.swing.JCheckBox.setRequestFocusEnabled()
方法的一些代码示例,展示了JCheckBox.setRequestFocusEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JCheckBox.setRequestFocusEnabled()
方法的具体详情如下:
包路径:javax.swing.JCheckBox
类名称:JCheckBox
方法名:setRequestFocusEnabled
暂无
代码示例来源:origin: stackoverflow.com
JCheckBox checkBox = new JCheckBox("Text");
checkBox.setOpaque(false);
checkBox.setRequestFocusEnabled(false);
menu.add(checkBox);
代码示例来源:origin: com.jidesoft/jide-oss
JCheckBox checkBox = new JCheckBox(getResourceString("SearchableBar.wholeWords"));
checkBox.setMnemonic(getResourceString("SearchableBar.wholeWords.mnemonic").charAt(0));
checkBox.setRequestFocusEnabled(false);
checkBox.setFocusable(false);
if (getSearchable() instanceof WholeWordsSupport) {
代码示例来源:origin: com.jidesoft/jide-oss
/**
* Creates the match case button. By default it will return a JCheckBox. Subclass class can override it to return
* your own button or customize the button created by default as long as it can set underlying Searchable's
* caseSensitive property.
*
* @return the match case button.
*/
protected AbstractButton createMatchCaseButton() {
JCheckBox checkBox = new JCheckBox(getResourceString("SearchableBar.matchCase"));
checkBox.setMnemonic(getResourceString("SearchableBar.matchCase.mnemonic").charAt(0));
checkBox.setRequestFocusEnabled(false);
checkBox.setFocusable(false);
checkBox.setSelected(getSearchable().isCaseSensitive());
checkBox.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
if (e.getSource() instanceof AbstractButton) {
getSearchable().setCaseSensitive(((AbstractButton) e.getSource()).isSelected());
addSearchingTextToHistory(getSearchingText());
highlightAllOrNext();
}
}
});
checkBox.setOpaque(false);
return checkBox;
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
@Override
public void run()
{
connectButton = new ConnectButton(connection);
connectButton.setRequestFocusEnabled(false);
simulationConstructionSet.addButton(connectButton);
pauseButton = new PauseButton();
pauseButton.setRequestFocusEnabled(false);
if (debug)
simulationConstructionSet.addButton(pauseButton);
recordCheckBox = new RecordCheckBox();
recordCheckBox.setRequestFocusEnabled(false);
recordCheckBox.setSelected(false);
simulationConstructionSet.addCheckBox(recordCheckBox);
}
});
代码示例来源:origin: org.bitbucket.goalhub.simpleide/jedit
ignoreCase.setMargin(margin);
ignoreCase.setOpaque(false);
ignoreCase.setRequestFocusEnabled(false);
add(Box.createHorizontalStrut(2));
regexp.setMargin(margin);
regexp.setOpaque(false);
regexp.setRequestFocusEnabled(false);
add(Box.createHorizontalStrut(2));
hyperSearch.setMargin(margin);
hyperSearch.setOpaque(false);
hyperSearch.setRequestFocusEnabled(false);
内容来源于网络,如有侵权,请联系作者删除!