本文整理了Java中javax.swing.JButton.getMnemonic()
方法的一些代码示例,展示了JButton.getMnemonic()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JButton.getMnemonic()
方法的具体详情如下:
包路径:javax.swing.JButton
类名称:JButton
方法名:getMnemonic
暂无
代码示例来源:origin: net.sf.meka/meka
/**
* Returns the mnemonic of the approve button.
*
* @return the current mnemonic, e.g., KeyEvent.VK_O
*/
public int getApproveMnemonic() {
return m_ButtonApprove.getMnemonic();
}
代码示例来源:origin: com.github.waikato/fcms-widgets
/**
* Returns the mnemonic of the discard button.
*
* @return the current mnemonic, e.g., KeyEvent.VK_D
*/
public int getDiscardMnemonic() {
return m_ButtonDiscard.getMnemonic();
}
代码示例来源:origin: Waikato/meka
/**
* Returns the mnemonic of the Cancel button.
*
* @return the current mnemonic, e.g., KeyEvent.VK_C
*/
public int getCancelMnemonic() {
return m_ButtonCancel.getMnemonic();
}
代码示例来源:origin: net.sf.meka/meka
/**
* Returns the mnemonic of the Cancel button.
*
* @return the current mnemonic, e.g., KeyEvent.VK_C
*/
public int getCancelMnemonic() {
return m_ButtonCancel.getMnemonic();
}
代码示例来源:origin: com.github.waikato/fcms-widgets
/**
* Returns the mnemonic of the approve button.
*
* @return the current mnemonic, e.g., KeyEvent.VK_O
*/
public int getApproveMnemonic() {
return m_ButtonApprove.getMnemonic();
}
代码示例来源:origin: com.github.waikato/fcms-widgets
/**
* Returns the mnemonic of the Cancel button.
*
* @return the current mnemonic, e.g., KeyEvent.VK_C
*/
public int getCancelMnemonic() {
return m_ButtonCancel.getMnemonic();
}
代码示例来源:origin: Waikato/meka
/**
* Returns the mnemonic of the approve button.
*
* @return the current mnemonic, e.g., KeyEvent.VK_O
*/
public int getApproveMnemonic() {
return m_ButtonApprove.getMnemonic();
}
代码示例来源:origin: net.sf.meka/meka
/**
* Returns the mnemonic of the discard button.
*
* @return the current mnemonic, e.g., KeyEvent.VK_D
*/
public int getDiscardMnemonic() {
return m_ButtonDiscard.getMnemonic();
}
代码示例来源:origin: com.google.code.validationframework/validationframework-swing
/**
* @see AbstractComponentProperty#getPropertyValueFromComponent()
*/
@Override
protected Integer getPropertyValueFromComponent() {
return component.getMnemonic();
}
代码示例来源:origin: Waikato/meka
/**
* Returns the mnemonic of the discard button.
*
* @return the current mnemonic, e.g., KeyEvent.VK_D
*/
public int getDiscardMnemonic() {
return m_ButtonDiscard.getMnemonic();
}
代码示例来源:origin: halirutan/IntelliJ-Key-Promoter-X
/**
* Information extraction for all other buttons
* TODO: This needs to be tested. I couldn't find a button that wasn't inspected with this fallback.
*
* @param source source of the action
*/
private void analyzeJButton(JButton source) {
mySource = ActionSource.OTHER;
myMnemonic = source.getMnemonic();
myDescription = source.getText();
}
代码示例来源:origin: mucommander/mucommander
if (keyCode==button.getMnemonic()) {
button.doClick();
return;
代码示例来源:origin: halirutan/IntelliJ-Key-Promoter
char mnemonic = ((char) ((JButton) source).getMnemonic());
if (mnemonic > 0) {
shortcutText = "\'" + metaKey + mnemonic + "\'";
内容来源于网络,如有侵权,请联系作者删除!