javax.swing.JButton.getMnemonic()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(95)

本文整理了Java中javax.swing.JButton.getMnemonic()方法的一些代码示例,展示了JButton.getMnemonic()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JButton.getMnemonic()方法的具体详情如下:
包路径:javax.swing.JButton
类名称:JButton
方法名:getMnemonic

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 + "\'";

相关文章

微信公众号

最新文章

更多

JButton类方法