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

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

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

JCheckBox.setToolTipText介绍

暂无

代码示例

代码示例来源:origin: chewiebug/GCViewer

  1. /**
  2. * Constructor taking a "parent" frame as parameter.
  3. * @param parent parent frame for this dialog
  4. */
  5. public OpenUrlView(JFrame parent) {
  6. super();
  7. this.parent = parent;
  8. autoCompletionComboBox = new AutoCompletionComboBox();
  9. panel = new JPanel(new GridBagLayout());
  10. GridBagConstraints gridBagConstraints = new GridBagConstraints();
  11. gridBagConstraints.anchor = GridBagConstraints.WEST;
  12. panel.add(autoCompletionComboBox, gridBagConstraints);
  13. gridBagConstraints.gridy = 1;
  14. addUrlCheckBox = new JCheckBox(LocalisationHelper.getString("urlopen_dialog_add_checkbox"), false);
  15. addUrlCheckBox.setToolTipText(LocalisationHelper.getString("urlopen_dialog_hint_add_checkbox"));
  16. panel.add(addUrlCheckBox, gridBagConstraints);
  17. }

代码示例来源:origin: wiztools/rest-client

  1. OptionsEtcPanel(){
  2. this.setLayout(new FlowLayout(FlowLayout.LEFT));
  3. jcb_indentResponse.setMnemonic('a');
  4. jcb_syntaxRequest.setToolTipText("Requires RESTClient restart!");
  5. jcb_syntaxResponse.setToolTipText("Requires RESTClient restart!");
  6. JPanel jp = new JPanel();
  7. jp.setLayout(new GridLayout(4, 1));
  8. jp.add(jcb_indentResponse);
  9. jp.add(jcb_syntaxRequest);
  10. jp.add(jcb_syntaxResponse);
  11. JPanel jp_scrollSpeed = new JPanel(new BorderLayout());
  12. JPanel jp_scrollSpeed_inner = new JPanel(new FlowLayout());
  13. jp_scrollSpeed_inner.add(new JLabel("Text areas scroll speed"));
  14. jp_scrollSpeed_inner.add(js_scrollSpeed);
  15. jp_scrollSpeed.add(BorderLayout.WEST, jp_scrollSpeed_inner);
  16. jp.add(jp_scrollSpeed);
  17. ((JSpinner.DefaultEditor)js_scrollSpeed.getEditor()).getTextField().setColumns(2);
  18. this.add(jp);
  19. }

代码示例来源:origin: chewiebug/GCViewer

  1. public OpenFileView() {
  2. setDialogTitle(LocalisationHelper.getString("fileopen_dialog_title"));
  3. setMultiSelectionEnabled(true);
  4. for (ExtensionFileFilter filter: ExtensionFileFilter.EXT_FILE_FILTERS) {
  5. addChoosableFileFilter(filter);
  6. }
  7. addFileCheckBox = new JCheckBox(LocalisationHelper.getString("fileopen_dialog_add_checkbox"), false);
  8. addFileCheckBox.setVerticalTextPosition(SwingConstants.TOP);
  9. addFileCheckBox.setToolTipText(LocalisationHelper.getString("fileopen_dialog_hint_add_checkbox"));
  10. final JPanel panel = new JPanel(new GridBagLayout());
  11. final GridBagConstraints gridBagConstraints = new GridBagConstraints();
  12. gridBagConstraints.anchor = GridBagConstraints.NORTH;
  13. gridBagConstraints.weighty = 2;
  14. panel.add(addFileCheckBox, gridBagConstraints);
  15. setAccessory(panel);
  16. }

代码示例来源:origin: wiztools/rest-client

  1. String toolTipText = "Send authentication credentials before challenge";
  2. jl_premptive.setToolTipText(toolTipText);
  3. jcb_preemptive.setToolTipText(toolTipText);
  4. jl_premptive.setLabelFor(jcb_preemptive);
  5. jl_premptive.addMouseListener(new MouseAdapter() {

代码示例来源:origin: redwarp/9-Patch-Resizer

  1. keepDensity.setToolTipText(Localization.get("keep_same_density_file_tooltip"));
  2. keepDensity.setSelected(Configuration.getSettings().shouldKeepSameDensityFile());
  3. keepDensity.addActionListener(new ActionListener() {

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

  1. .setToolTipText("Cluster wav files by timestamp, and normalise cluster averages.\n\nWav files recorded with less than 10 minutes gap between them are treated like a single recording session. Only clusters as a whole are normalised, in order to even out different recording volumes in different recording sessions.\n");
  2. cbPowerNormalise.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  3. cbPowerNormalise.setMargin(new java.awt.Insets(0, 0, 0, 0));
  4. cbBestOnly.setToolTipText("Process a001.wav, but not a001a.wav, a001b.wav etc.");
  5. cbBestOnly.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  6. cbBestOnly.setMargin(new java.awt.Insets(0, 0, 0, 0));

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

  1. .setToolTipText("Cluster wav files by timestamp, and normalise cluster averages.\n\nWav files recorded with less than 10 minutes gap between them are treated like a single recording session. Only clusters as a whole are normalised, in order to even out different recording volumes in different recording sessions.\n");
  2. cbPowerNormalise.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  3. cbPowerNormalise.setMargin(new java.awt.Insets(0, 0, 0, 0));
  4. cbBestOnly.setToolTipText("Process a001.wav, but not a001a.wav, a001b.wav etc.");
  5. cbBestOnly.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  6. cbBestOnly.setMargin(new java.awt.Insets(0, 0, 0, 0));

代码示例来源:origin: apache/pdfbox

  1. caseSensitive.setSelected(false);
  2. caseSensitive.addChangeListener(changeListener);
  3. caseSensitive.setToolTipText("Check for case sensitive search");

代码示例来源:origin: jshiell/checkstyle-idea

  1. suppressErrorsCheckbox.setToolTipText(CheckStyleBundle.message("config.suppress-errors.checkbox.tooltip"));
  2. copyLibsCheckbox.setToolTipText(CheckStyleBundle.message("config.stabilize-classpath.tooltip"));

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

  1. private void createCheckboxes() {
  2. if (!boxesCreated) {
  3. ExpansionInfo[] allExpansions = ExpansionRepository.instance.getWithBoostersSortedByReleaseDate();
  4. for (ExpansionInfo exp : allExpansions) {
  5. JCheckBox pack = new JCheckBox();
  6. pack.setSelected(true);
  7. pack.setText(exp.getCode());
  8. pack.setToolTipText(exp.getName());
  9. pnlPacks.add(pack);
  10. }
  11. pnlPacks.setVisible(true);
  12. this.pack();
  13. boxesCreated = true;
  14. pnlPacks.validate();
  15. }
  16. }

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

  1. chkRollbackTurnsAllowed.setToolTipText("<HTML>Allow to rollback to the start of previous turns<br>\nif all players agree.\n");
  2. chkSpectatorsAllowed.setToolTipText("<HTML>Allow spectators to watch.\n");
  3. chkPlaneChase.setToolTipText("<HTML>Use planechase variant (suitable for all game types).\n");
  4. chkRated.setToolTipText("Indicates if matches will be rated.");

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

  1. ckbFullArtLands.setToolTipText("For example, lands from ZEN/UST/HOU");

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

  1. cSingleton.setToolTipText("Allow only a single copy of each non-land card in your deck.");
  2. String singletonEnabled = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_NEW_DECK_GENERATOR_SINGLETON, "false");
  3. cSingleton.setSelected(Boolean.valueOf(singletonEnabled));
  4. cArtifacts.setToolTipText("Use artifacts and artifact creatures in your deck.");
  5. String artifactEnabled = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_NEW_DECK_GENERATOR_ARTIFACTS, "false");
  6. cArtifacts.setSelected(Boolean.valueOf(artifactEnabled));
  7. cNonBasicLands.setToolTipText("Use non-basic lands in your deck (if applicable).");
  8. String nonBasicEnabled = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_NEW_DECK_GENERATOR_NON_BASIC_LANDS, "false");
  9. cNonBasicLands.setSelected(Boolean.valueOf(nonBasicEnabled));
  10. cColorless.setToolTipText("Allow cards with colorless mana cost.");
  11. String colorlessEnabled = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_NEW_DECK_GENERATOR_COLORLESS, "false");
  12. cColorless.setSelected(Boolean.valueOf(colorlessEnabled));
  13. cAdvanced.setToolTipText("Enable advanced configuration options");
  14. cAdvanced.addItemListener(itemEvent -> {
  15. boolean enable = cAdvanced.isSelected();

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

  1. chkAutoConnect.setToolTipText("<HTML>If active this connect dialog will not be shown if you choose to connect.<br>\nInstead XMage tries to connect to the last server you were connected to.");
  2. chkAutoConnect.addActionListener(new java.awt.event.ActionListener() {
  3. public void actionPerformed(java.awt.event.ActionEvent evt) {
  4. chkForceUpdateDB.setToolTipText("<HTML>If active the comparison of the server cards database to the client database will be enforced.<br>If not, the comparison will only done if the database version of the client is lower than the version of the server.");
  5. chkForceUpdateDB.addActionListener(new java.awt.event.ActionListener() {
  6. public void actionPerformed(java.awt.event.ActionEvent evt) {

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

  1. cbAllowSpectators.setToolTipText("Allow other players to watch the games of this table.");
  2. cbPlaneChase.setToolTipText("Use Plane Chase variant for the tournament.");
  3. chkRollbackTurnsAllowed.setToolTipText("<HTML>Allow to rollback to the start of previous turns<br> if all players agree. ");
  4. chkRated.setToolTipText("Indicates if matches will be rated.");

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

  1. cardsOrTokens.setSelected(true);
  2. cardsOrTokens.setForeground(Color.white);
  3. cardsOrTokens.setToolTipText("Select to show Cards for the chosen set. When unselected, will show Tokens, Emblems and Planes for the set instead");
  4. cardsOrTokens.addActionListener(e -> mageBook.cardsOrTokens(cardsOrTokens.isSelected()));
  5. buttonsPanel.add(cardsOrTokens);

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

  1. secondLine.add(this.specialCharacters);
  2. this.lowerCaseCharacters.setToolTipText(I18n.valueByKey("BRUTEFORCE_LCASE_TOOLTIP"));
  3. this.upperCaseCharacters.setToolTipText(I18n.valueByKey("BRUTEFORCE_UCASE_TOOLTIP"));
  4. this.numericCharacters.setToolTipText(I18n.valueByKey("BRUTEFORCE_NUM_TOOLTIP"));
  5. this.specialCharacters.setToolTipText(I18n.valueByKey("BRUTEFORCE_SPEC_TOOLTIP"));

代码示例来源:origin: jshiell/checkstyle-idea

  1. private void initialise() {
  2. relativeFileCheckbox.setText(CheckStyleBundle.message("config.file.relative-file.text"));
  3. relativeFileCheckbox.setToolTipText(CheckStyleBundle.message("config.file.relative-file.tooltip"));
  4. insecureHttpCheckbox.setText(CheckStyleBundle.message("config.file.insecure-http.text"));
  5. insecureHttpCheckbox.setToolTipText(CheckStyleBundle.message("config.file.insecure-http.tooltip"));

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

  1. this.checkboxIsTamperingBase64.setToolTipText(tooltipIsTamperingBase64);
  2. this.checkboxIsTamperingBase64.setFocusable(false);
  3. JButton labelIsTamperingBase64 = new JButton("Encode SQL expression to Base64");
  4. this.checkboxIsTamperingFunctionComment.setToolTipText(tooltipIsTamperingFunctionComment);
  5. this.checkboxIsTamperingFunctionComment.setFocusable(false);
  6. JButton labelIsTamperingFunctionComment = new JButton("Add comment to function signature, e.g concat/**/()");
  7. this.checkboxIsTamperingEqualToLike.setToolTipText(tooltipIsTamperingEqualToLike);
  8. this.checkboxIsTamperingEqualToLike.setFocusable(false);
  9. JButton labelIsTamperingEqualToLike = new JButton("Replace equal sign '=' with 'like'");
  10. this.checkboxIsTamperingRandomCase.setToolTipText(tooltipIsTamperingRandomCase);
  11. this.checkboxIsTamperingRandomCase.setFocusable(false);
  12. JButton labelIsTamperingRandomCase = new JButton("Transform SQL keywords to random case");
  13. this.checkboxIsTamperingEval.setToolTipText(tooltipIsTamperingEval);
  14. this.checkboxIsTamperingEval.setFocusable(false);
  15. LightScrollPane textAreaIsTamperingEval = new LightScrollPane(new JPopupTextArea(new JTextAreaPlaceholder("Eval")).getProxy());
  16. this.checkboxIsTamperingVersionComment.setToolTipText(tooltipIsTamperingVersionComment);
  17. this.checkboxIsTamperingVersionComment.setFocusable(false);
  18. JButton labelIsTamperingVersionComment = new JButton("Transform SQL keywords to versioned comment, e.g /*!concat*/()");
  19. this.checkboxIsReportingBugs.setToolTipText(tooltipIsReportingBugs);
  20. this.checkboxIsReportingBugs.setFocusable(false);
  21. JButton labelIsReportingBugs = new JButton("Report unhandled exceptions");
  22. this.checkboxIs4K.setToolTipText(tooltipIs4K);

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

  1. chkPennyDreadful.setToolTipText("Will only allow Penny Dreadful legal cards to be shown.");
  2. chkPennyDreadful.setFocusable(false);
  3. chkPennyDreadful.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
  4. chkPiles.setToolTipText("Shows the card in piles by the selected sort.");
  5. chkPiles.setFocusable(false);
  6. chkPiles.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
  7. chkNames.setToolTipText("Search in card names.");
  8. chkNames.setFocusable(false);
  9. chkNames.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
  10. chkTypes.setToolTipText("Search in card types.");
  11. chkTypes.setFocusable(false);
  12. chkTypes.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
  13. chkRules.setToolTipText("Search in card rules.");
  14. chkRules.setFocusable(false);
  15. chkRules.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
  16. chkUnique.setToolTipText("Show only the first found card of every card name.");
  17. chkUnique.setFocusable(false);
  18. chkUnique.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);

相关文章

JCheckBox类方法