javax.swing.JCheckBox.setDisplayedMnemonicIndex()方法的使用及代码示例

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

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

JCheckBox.setDisplayedMnemonicIndex介绍

暂无

代码示例

代码示例来源:origin: robo-code/robocode

private JCheckBox getVisibleExplosionDebrisCheckBox() {
  if (visibleExplosionDebrisCheckBox == null) {
    visibleExplosionDebrisCheckBox = new JCheckBox("Visible Explosion Debris");
    visibleExplosionDebrisCheckBox.setMnemonic('E');
    visibleExplosionDebrisCheckBox.setDisplayedMnemonicIndex(8);
  }
  return visibleExplosionDebrisCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getNotifyAboutBetaVersionsCheckBox() {
  if (notifyAboutBetaVersionsCheckBox == null) {
    notifyAboutBetaVersionsCheckBox = new JCheckBox("Notify about new Beta versions of Robocode");
    notifyAboutBetaVersionsCheckBox.setMnemonic('B');
    notifyAboutBetaVersionsCheckBox.setDisplayedMnemonicIndex(17);
  }
  return notifyAboutBetaVersionsCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getVisibleGroundCheckBox() {
  if (visibleGroundCheckBox == null) {
    visibleGroundCheckBox = new JCheckBox("Visible Ground");
    visibleGroundCheckBox.setMnemonic('G');
    visibleGroundCheckBox.setDisplayedMnemonicIndex(8);
  }
  return visibleGroundCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getEnableBulletHitCheckBox() {
  if (enableBulletHitCheckBox == null) {
    enableBulletHitCheckBox = new JCheckBox("Bullet Hit");
    enableBulletHitCheckBox.setMnemonic('H');
    enableBulletHitCheckBox.setDisplayedMnemonicIndex(7);
  }
  return enableBulletHitCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getVisibleScanArcsCheckBox() {
  if (visibleScanArcsCheckBox == null) {
    visibleScanArcsCheckBox = new JCheckBox("Visible Scan Arcs");
    visibleScanArcsCheckBox.setMnemonic('b');
    visibleScanArcsCheckBox.setDisplayedMnemonicIndex(4);
  }
  return visibleScanArcsCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getDontHideRankingsCheckBox() {
  if (dontHideRankingsCheckBox == null) {
    dontHideRankingsCheckBox = new JCheckBox("Don't hide current rankings when main window is minimized");
    dontHideRankingsCheckBox.setMnemonic('t');
    dontHideRankingsCheckBox.setDisplayedMnemonicIndex(4);
  }
  return dontHideRankingsCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getDisplayFpsCheckBox() {
  if (displayFpsCheckBox == null) {
    displayFpsCheckBox = new JCheckBox("Display FPS in titlebar");
    displayFpsCheckBox.setMnemonic('P');
    displayFpsCheckBox.setDisplayedMnemonicIndex(9);
  }
  return displayFpsCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getDisplayTpsCheckBox() {
  if (displayTpsCheckBox == null) {
    displayTpsCheckBox = new JCheckBox("Display TPS in titlebar");
    displayTpsCheckBox.setMnemonic('T');
    displayTpsCheckBox.setDisplayedMnemonicIndex(8);
  }
  return displayTpsCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getVisibleExplosionsCheckBox() {
  if (visibleExplosionsCheckBox == null) {
    visibleExplosionsCheckBox = new JCheckBox("Visible Explosions");
    visibleExplosionsCheckBox.setMnemonic('x');
    visibleExplosionsCheckBox.setDisplayedMnemonicIndex(9);
  }
  return visibleExplosionsCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getEnableRobotCollisionCheckBox() {
  if (enableRobotCollisionCheckBox == null) {
    enableRobotCollisionCheckBox = new JCheckBox("Robot Collisions");
    enableRobotCollisionCheckBox.setMnemonic('t');
    enableRobotCollisionCheckBox.setDisplayedMnemonicIndex(4);
  }
  return enableRobotCollisionCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getEnableWallCollisionCheckBox() {
  if (enableWallCollisionCheckBox == null) {
    enableWallCollisionCheckBox = new JCheckBox("Wall Collisions");
    enableWallCollisionCheckBox.setMnemonic('l');
    enableWallCollisionCheckBox.setDisplayedMnemonicIndex(2);
  }
  return enableWallCollisionCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getVisibleRobotEnergyCheckBox() {
  if (visibleRobotEnergyCheckBox == null) {
    visibleRobotEnergyCheckBox = new JCheckBox("Visible Robot Energy");
    visibleRobotEnergyCheckBox.setMnemonic('y');
    visibleRobotEnergyCheckBox.setDisplayedMnemonicIndex(19);
  }
  return visibleRobotEnergyCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getVisibleSentryBorderCheckBox() {
  if (visibleSentryBorderCheckBox == null) {
    visibleSentryBorderCheckBox = new JCheckBox("Visible Sentry Border");
    visibleSentryBorderCheckBox.setMnemonic('l');
    visibleSentryBorderCheckBox.setDisplayedMnemonicIndex(5);
  }
  return visibleSentryBorderCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getShowResultsCheckBox() {
  if (showResultsCheckBox == null) {
    showResultsCheckBox = new JCheckBox("Show results when battle(s) ends");
    showResultsCheckBox.setMnemonic('h');
    showResultsCheckBox.setDisplayedMnemonicIndex(1);
  }
  return showResultsCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getEnableRobotDeathCheckBox() {
  if (enableRobotDeathCheckBox == null) {
    enableRobotDeathCheckBox = new JCheckBox("Robot Death Explosions");
    enableRobotDeathCheckBox.setMnemonic('x');
    enableRobotDeathCheckBox.setDisplayedMnemonicIndex(13);
  }
  return enableRobotDeathCheckBox;
}

代码示例来源:origin: robo-code/robocode

public JCheckBox getCaseSensitiveCheckBox() {
  if (caseSensitiveCheckBox == null) {
    caseSensitiveCheckBox = new JCheckBox();
    caseSensitiveCheckBox.setText("Case Sensitive");
    caseSensitiveCheckBox.setMnemonic('v');
    caseSensitiveCheckBox.setDisplayedMnemonicIndex(12);
    caseSensitiveCheckBox.addActionListener(this);
  }
  return caseSensitiveCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getOptionsRenderingBufferImagesCheckBox() {
  if (optionsRenderingBufferImagesCheckBox == null) {
    optionsRenderingBufferImagesCheckBox = new JCheckBox("Buffer images (uses memory)");
    optionsRenderingBufferImagesCheckBox.setMnemonic('i');
    optionsRenderingBufferImagesCheckBox.setDisplayedMnemonicIndex(7);
    optionsRenderingBufferImagesCheckBox.addActionListener(eventHandler);
  }
  return optionsRenderingBufferImagesCheckBox;
}

代码示例来源:origin: robo-code/robocode

private JCheckBox getEnableAutoRecordingCheckBox() {
  if (enableAutoRecordingCheckBox == null) {
    enableAutoRecordingCheckBox = new JCheckBox(
        "Enable auto recording (every finished battle is automatically saved into battles folder)");
    enableAutoRecordingCheckBox.setMnemonic('u');
    enableAutoRecordingCheckBox.setDisplayedMnemonicIndex(8);
    enableAutoRecordingCheckBox.addActionListener(
        new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        boolean isSelected = enableAutoRecordingCheckBox.isSelected();
        enableReplayRecordingCheckBox.setEnabled(!isSelected);
        enableReplayRecordingCheckBox.setSelected(
            isSelected ? true : properties.getOptionsCommonEnableReplayRecording());
      }
    });
  }
  return enableAutoRecordingCheckBox;
}

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

globalVarAutocompletion.setText("Offer registered global variables in autocompletion");
globalVarAutocompletion.setMnemonic('O');
globalVarAutocompletion.setDisplayedMnemonicIndex(0);
panel1.add(globalVarAutocompletion, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final JScrollPane scrollPane1 = new JScrollPane();
bash4Support.setText("Support Bash 4.x language elements");
bash4Support.setMnemonic('S');
bash4Support.setDisplayedMnemonicIndex(0);
panel2.add(bash4Support, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final JPanel panel3 = new JPanel();

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

myFixedTipPosition.setText("Tip popups always at the bottom of screen");
myFixedTipPosition.setMnemonic('P');
myFixedTipPosition.setDisplayedMnemonicIndex(4);
panel2.add(myFixedTipPosition, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final JPanel panel3 = new JPanel();
myMenus.setText("Menus");
myMenus.setMnemonic('M');
myMenus.setDisplayedMnemonicIndex(0);
panel7.add(myMenus, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
myToolbarButtons = new JCheckBox();
myToolbarButtons.setText("Toolbar buttons");
myToolbarButtons.setMnemonic('T');
myToolbarButtons.setDisplayedMnemonicIndex(0);
panel7.add(myToolbarButtons, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
myToolWindowButtons = new JCheckBox();
myToolWindowButtons.setText("Tool window buttons");
myToolWindowButtons.setMnemonic('W');
myToolWindowButtons.setDisplayedMnemonicIndex(5);
panel7.add(myToolWindowButtons, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
myAllButtons = new JCheckBox();
myAllButtons.setText("All buttons(mnemonics)");
myAllButtons.setMnemonic('A');
myAllButtons.setDisplayedMnemonicIndex(0);
panel7.add(myAllButtons, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final Spacer spacer3 = new Spacer();

相关文章

JCheckBox类方法