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

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

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

JButton.getMnemonic介绍

暂无

代码示例

代码示例来源:origin: net.sf.meka/meka

  1. /**
  2. * Returns the mnemonic of the approve button.
  3. *
  4. * @return the current mnemonic, e.g., KeyEvent.VK_O
  5. */
  6. public int getApproveMnemonic() {
  7. return m_ButtonApprove.getMnemonic();
  8. }

代码示例来源:origin: com.github.waikato/fcms-widgets

  1. /**
  2. * Returns the mnemonic of the discard button.
  3. *
  4. * @return the current mnemonic, e.g., KeyEvent.VK_D
  5. */
  6. public int getDiscardMnemonic() {
  7. return m_ButtonDiscard.getMnemonic();
  8. }

代码示例来源:origin: Waikato/meka

  1. /**
  2. * Returns the mnemonic of the Cancel button.
  3. *
  4. * @return the current mnemonic, e.g., KeyEvent.VK_C
  5. */
  6. public int getCancelMnemonic() {
  7. return m_ButtonCancel.getMnemonic();
  8. }

代码示例来源:origin: net.sf.meka/meka

  1. /**
  2. * Returns the mnemonic of the Cancel button.
  3. *
  4. * @return the current mnemonic, e.g., KeyEvent.VK_C
  5. */
  6. public int getCancelMnemonic() {
  7. return m_ButtonCancel.getMnemonic();
  8. }

代码示例来源:origin: com.github.waikato/fcms-widgets

  1. /**
  2. * Returns the mnemonic of the approve button.
  3. *
  4. * @return the current mnemonic, e.g., KeyEvent.VK_O
  5. */
  6. public int getApproveMnemonic() {
  7. return m_ButtonApprove.getMnemonic();
  8. }

代码示例来源:origin: com.github.waikato/fcms-widgets

  1. /**
  2. * Returns the mnemonic of the Cancel button.
  3. *
  4. * @return the current mnemonic, e.g., KeyEvent.VK_C
  5. */
  6. public int getCancelMnemonic() {
  7. return m_ButtonCancel.getMnemonic();
  8. }

代码示例来源:origin: Waikato/meka

  1. /**
  2. * Returns the mnemonic of the approve button.
  3. *
  4. * @return the current mnemonic, e.g., KeyEvent.VK_O
  5. */
  6. public int getApproveMnemonic() {
  7. return m_ButtonApprove.getMnemonic();
  8. }

代码示例来源:origin: net.sf.meka/meka

  1. /**
  2. * Returns the mnemonic of the discard button.
  3. *
  4. * @return the current mnemonic, e.g., KeyEvent.VK_D
  5. */
  6. public int getDiscardMnemonic() {
  7. return m_ButtonDiscard.getMnemonic();
  8. }

代码示例来源:origin: com.google.code.validationframework/validationframework-swing

  1. /**
  2. * @see AbstractComponentProperty#getPropertyValueFromComponent()
  3. */
  4. @Override
  5. protected Integer getPropertyValueFromComponent() {
  6. return component.getMnemonic();
  7. }

代码示例来源:origin: Waikato/meka

  1. /**
  2. * Returns the mnemonic of the discard button.
  3. *
  4. * @return the current mnemonic, e.g., KeyEvent.VK_D
  5. */
  6. public int getDiscardMnemonic() {
  7. return m_ButtonDiscard.getMnemonic();
  8. }

代码示例来源:origin: halirutan/IntelliJ-Key-Promoter-X

  1. /**
  2. * Information extraction for all other buttons
  3. * TODO: This needs to be tested. I couldn't find a button that wasn't inspected with this fallback.
  4. *
  5. * @param source source of the action
  6. */
  7. private void analyzeJButton(JButton source) {
  8. mySource = ActionSource.OTHER;
  9. myMnemonic = source.getMnemonic();
  10. myDescription = source.getText();
  11. }

代码示例来源:origin: mucommander/mucommander

  1. if (keyCode==button.getMnemonic()) {
  2. button.doClick();
  3. return;

代码示例来源:origin: halirutan/IntelliJ-Key-Promoter

  1. char mnemonic = ((char) ((JButton) source).getMnemonic());
  2. if (mnemonic > 0) {
  3. shortcutText = "\'" + metaKey + mnemonic + "\'";

相关文章

JButton类方法