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

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

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

JCheckBox.setFocusable介绍

暂无

代码示例

代码示例来源:origin: 4thline/cling

fullscreenCheckbox.setFocusable(false);
statusIconPanel.add(fullscreenCheckbox);

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

zoomFitButt.setFocusable(false);
zoomFitButt.addActionListener(new ActionListener() {
  public void actionPerformed(ActionEvent ae) {
widthFitButt.setFocusable(false);
widthFitButt.addActionListener(new ActionListener() {
  public void actionPerformed(ActionEvent ae) {

代码示例来源:origin: ron190/jsql-injection

this.checkboxIsTamperingBase64.setFocusable(false);
JButton labelIsTamperingBase64 = new JButton("Encode SQL expression to Base64");
labelIsTamperingBase64.setToolTipText(tooltipIsTamperingBase64);
this.checkboxIsTamperingFunctionComment.setFocusable(false);
JButton labelIsTamperingFunctionComment = new JButton("Add comment to function signature, e.g concat/**/()");
labelIsTamperingFunctionComment.setToolTipText(tooltipIsTamperingFunctionComment);
this.checkboxIsTamperingEqualToLike.setFocusable(false);
JButton labelIsTamperingEqualToLike = new JButton("Replace equal sign '=' with 'like'");
labelIsTamperingEqualToLike.setToolTipText(tooltipIsTamperingEqualToLike);
this.checkboxIsTamperingRandomCase.setFocusable(false);
JButton labelIsTamperingRandomCase = new JButton("Transform SQL keywords to random case");
labelIsTamperingRandomCase.setToolTipText(tooltipIsTamperingRandomCase);
this.checkboxIsTamperingEval.setFocusable(false);
LightScrollPane textAreaIsTamperingEval = new LightScrollPane(new JPopupTextArea(new JTextAreaPlaceholder("Eval")).getProxy());
textAreaIsTamperingEval.setBorder(HelperUi.BORDER_FOCUS_LOST);
this.checkboxIsTamperingVersionComment.setFocusable(false);
JButton labelIsTamperingVersionComment = new JButton("Transform SQL keywords to versioned comment, e.g /*!concat*/()");
labelIsTamperingVersionComment.setToolTipText(tooltipIsTamperingVersionComment);
this.checkboxIsCheckingUpdate.setFocusable(false);
JButton labelIsCheckingUpdate = new JButton("Check update at startup");
labelIsCheckingUpdate.addActionListener(actionEvent -> {
this.checkboxIsReportingBugs.setFocusable(false);

代码示例来源:origin: magefree/mage

chkPennyDreadful.setFocusable(false);
chkPennyDreadful.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
chkPennyDreadful.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
chkPiles.setFocusable(false);
chkPiles.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
chkPiles.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
chkNames.setText("Names");
chkNames.setToolTipText("Search in card names.");
chkNames.setFocusable(false);
chkNames.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
chkNames.setMaximumSize(new java.awt.Dimension(67, 16));
chkTypes.setText("Types");
chkTypes.setToolTipText("Search in card types.");
chkTypes.setFocusable(false);
chkTypes.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
chkTypes.setMaximumSize(new java.awt.Dimension(63, 16));
chkRules.setText("Rules");
chkRules.setToolTipText("Search in card rules.");
chkRules.setFocusable(false);
chkRules.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
chkRules.setMaximumSize(new java.awt.Dimension(59, 16));
chkUnique.setText("Unique");
chkUnique.setToolTipText("Show only the first found card of every card name.");
chkUnique.setFocusable(false);

代码示例来源:origin: antlr/antlrworks

public JCheckBox createBreakButton(String title) {
  JCheckBox button = new JCheckBox(title);
  button.setFocusable(false);
  button.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
      /** Select 'All' if no events are selected */
      if(getBreakEvent().isEmpty()) {
        breakAllButton.setSelected(true);
        AWPrefs.getPreferences().setBoolean(AWPrefs.PREF_DEBUG_BREAK_ALL, true);
      }
    }
  });
  return button;
}

代码示例来源:origin: antlr/antlrworks

private JCheckBox createShowNFAButton() {
  JCheckBox button = new JCheckBox("NFA");
  button.setFocusable(false);
  button.setSelected(context.skin instanceof NFASkin);
  button.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent event) {
      StatisticsAW.shared().recordEvent(StatisticsAW.EVENT_TOGGLE_SD_NFA);
      JCheckBox button = (JCheckBox)event.getSource();
      if(button.isSelected())
        context.setSkin(new NFASkin());
      else
        context.setSkin(new SDSkin());
      view.refresh();
    }
  });
  return button;
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-modelutil

/** We disable focusing on the component when it is not
 * enabled. */
@Override
public void setEnabled(boolean b) {
  btn.setFocusable(b);
  other.setEnabled(b);
}
/** All these methods simply delegate to the "other" model

代码示例来源:origin: antlr/antlrworks

private JCheckBox createShowRuleNameButton() {
  final JCheckBox button = new JCheckBox("Rule Name");
  button.setFocusable(false);
  button.setSelected(context.isShowRuleName());
  button.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent event) {
      context.setShowRuleName(button.isSelected());
      view.refresh();
    }
  });
  return button;
}

代码示例来源:origin: SonarSource/sonarlint-intellij

private JPanel createTopPanel() {
 autoTrigger = new JCheckBox("Automatically trigger analysis");
 autoTrigger.setFocusable(false);
 JPanel tickOptions = new JPanel(new VerticalFlowLayout());
 tickOptions.setBorder(BorderFactory.createEmptyBorder(0, 0, 4, 0));
 tickOptions.add(autoTrigger);
 return tickOptions;
}

代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client

private AbstractWizardPage getVCFImportSettingsPage() throws SQLException, RemoteException {
  //setup page
  final DefaultWizardPage page = new DefaultWizardPage(PAGENAME_IMPORT) {
    @Override
    public void setupWizardButtons() {
      fireButtonEvent(ButtonEvent.ENABLE_BUTTON, ButtonNames.BACK);
      fireButtonEvent(ButtonEvent.HIDE_BUTTON, ButtonNames.FINISH);
      fireButtonEvent(ButtonEvent.ENABLE_BUTTON, ButtonNames.NEXT);
    }
  };
  if (modify) {
    page.addComponent(new JLabel("<html><b>Warning: Changes to this setting will only affect new VCF Uploads.</b></html>"));
  }
  // <html> wraps the text around if it doesn't fit.
  includeReferenceCheckbox = new JCheckBox("<html>Include all VCF lines, including reference calls." +
      "<br/>Highly recommended for pharmacogenetic testing.</html>");
  includeReferenceCheckbox.setSelected(false);
  includeReferenceCheckbox.setFocusable(false);
  page.addComponent(includeReferenceCheckbox);
  return page;
}
private AbstractWizardPage getCreatePage() {

代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client

private void initSettingsPanel() {
  advancedOptionsPanel = ViewUtil.getWhiteLineBorderedPanel();
  advancedOptionsPanel.setLayout(new MigLayout("fillx"));
  advancedOptionsPanel.setVisible(false);
  //settingsPanel.setOpaque(false);
  JLabel l = new JLabel("Advanced Options");
  l.setFont(ViewUtil.getMediumTitleFont());
  advancedOptionsPanel.add(l, "wrap");
  advancedOptionsPanel.add(ViewUtil.getSettingsHeaderLabel("Annotation"), "wrap");
  advancedOptionsPanel.add(annovarCheckbox = new JCheckBox("perform gene-based variant annotation"), "wrap");
  advancedOptionsPanel.add(phasingCheckbox = new JCheckBox("perform phasing"), "wrap");
  annovarCheckbox.setSelected(true);
  annovarCheckbox.setFocusable(false);
  phasingCheckbox.setSelected(false);
  phasingCheckbox.setFocusable(false);
  advancedOptionsPanel.add(ViewUtil.getSettingsHeaderLabel("Notifications"), "wrap");
  emailPlaceholder = new PlaceHolderTextField();
  emailPlaceholder.setPlaceholder("email address");
  advancedOptionsPanel.add(ViewUtil.getSettingsHelpLabel("Email notifications are sent upon completion"), "wrap");
  advancedOptionsPanel.add(emailPlaceholder, "wrap, growx 1.0");
}

代码示例来源:origin: antlr/antlrworks

private JCheckBox createPathSelectionButton(int pathIndex) {
  JCheckBox button = new JCheckBox(String.valueOf(pathIndex+1));
  button.setName(String.valueOf(pathIndex));
  button.setFocusable(false);
  button.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent event) {
      JCheckBox button = (JCheckBox)event.getSource();
      GGraphGroup gg = (GGraphGroup)view.getCurrentGraph();
      gg.getPathGroup().setPathVisible(Integer.parseInt(button.getName()), button.isSelected());
      gg.getPathGroup().makeSureCurrentPathIsVisible();
      view.cacheRerender();
      view.repaint();
    }
  });
  GGraphGroup gg = (GGraphGroup)view.getCurrentGraph();
  button.setSelected(gg.getPathGroup().isPathVisible(pathIndex));
  return button;
}

代码示例来源:origin: org.seamless/seamless-swing

checkBox.setFocusable(false);
checkBox.addItemListener(new ItemListener() {
  public void itemStateChanged(ItemEvent e) {

代码示例来源:origin: Killerardvark/CryodexSource

togglePolicy.setActionCommand("toggle");
togglePolicy.addActionListener(this);
togglePolicy.setFocusable(false);  //Remove it from the focus cycle.

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-bugtracking-commons

machCaseChoice.setFocusable(false);
machCaseChoice.addActionListener(new java.awt.event.ActionListener() {
  public void actionPerformed(java.awt.event.ActionEvent evt) {
wholeWordsChoice.setFocusable(false);
wholeWordsChoice.addActionListener(new java.awt.event.ActionListener() {
  public void actionPerformed(java.awt.event.ActionEvent evt) {
regularExpressionChoice.setFocusable(false);
regularExpressionChoice.addActionListener(new java.awt.event.ActionListener() {
  public void actionPerformed(java.awt.event.ActionEvent evt) {
highlightResultsChoice.setFocusable(false);
highlightResultsChoice.addActionListener(new java.awt.event.ActionListener() {
  public void actionPerformed(java.awt.event.ActionEvent evt) {

代码示例来源:origin: MegaMek/mekhq

private JCheckBox createOptionCheckBox(String text, Icon checkboxIcon, Icon checkboxSelectedIcon) {
  JCheckBox checkBox = new JCheckBox(text);
  checkBox.setOpaque(false);
  checkBox.setForeground(new Color(150, 220, 255));
  checkBox.setFocusable(false);
  checkBox.setFont(checkBox.getFont().deriveFont(Font.BOLD));
  checkBox.setPreferredSize(new Dimension(150, 20));
  checkBox.setIcon(checkboxIcon);
  checkBox.setSelectedIcon(checkboxSelectedIcon);
  checkBox.setSelected(false);
  checkBox.addActionListener(new ActionListener() {
    @Override
    public void actionPerformed(ActionEvent e) {
      repaint();
    }
  });
  return checkBox;
}

代码示例来源:origin: SonarSource/sonarlint-intellij

enableTelemetryCheckBox.setFocusable(false);
JPanel tickOptions = new JPanel(new VerticalFlowLayout());
tickOptions.setBorder(BorderFactory.createEmptyBorder(0, 0, 4, 0));

代码示例来源: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: com.jidesoft/jide-oss

checkBox.setMnemonic(getResourceString("SearchableBar.wholeWords.mnemonic").charAt(0));
checkBox.setRequestFocusEnabled(false);
checkBox.setFocusable(false);
if (getSearchable() instanceof WholeWordsSupport) {
  checkBox.setSelected(((WholeWordsSupport) getSearchable()).isWholeWords());

代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client

rememberPasswordCheckbox.setFocusable(false);
panel.add(rememberPasswordCheckbox, "wrap");
autoLoginCheckBox.setFocusable(false);

相关文章

JCheckBox类方法