本文整理了Java中javax.swing.JCheckBox.setToolTipText()
方法的一些代码示例,展示了JCheckBox.setToolTipText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JCheckBox.setToolTipText()
方法的具体详情如下:
包路径:javax.swing.JCheckBox
类名称:JCheckBox
方法名:setToolTipText
暂无
代码示例来源:origin: chewiebug/GCViewer
/**
* Constructor taking a "parent" frame as parameter.
* @param parent parent frame for this dialog
*/
public OpenUrlView(JFrame parent) {
super();
this.parent = parent;
autoCompletionComboBox = new AutoCompletionComboBox();
panel = new JPanel(new GridBagLayout());
GridBagConstraints gridBagConstraints = new GridBagConstraints();
gridBagConstraints.anchor = GridBagConstraints.WEST;
panel.add(autoCompletionComboBox, gridBagConstraints);
gridBagConstraints.gridy = 1;
addUrlCheckBox = new JCheckBox(LocalisationHelper.getString("urlopen_dialog_add_checkbox"), false);
addUrlCheckBox.setToolTipText(LocalisationHelper.getString("urlopen_dialog_hint_add_checkbox"));
panel.add(addUrlCheckBox, gridBagConstraints);
}
代码示例来源:origin: wiztools/rest-client
OptionsEtcPanel(){
this.setLayout(new FlowLayout(FlowLayout.LEFT));
jcb_indentResponse.setMnemonic('a');
jcb_syntaxRequest.setToolTipText("Requires RESTClient restart!");
jcb_syntaxResponse.setToolTipText("Requires RESTClient restart!");
JPanel jp = new JPanel();
jp.setLayout(new GridLayout(4, 1));
jp.add(jcb_indentResponse);
jp.add(jcb_syntaxRequest);
jp.add(jcb_syntaxResponse);
JPanel jp_scrollSpeed = new JPanel(new BorderLayout());
JPanel jp_scrollSpeed_inner = new JPanel(new FlowLayout());
jp_scrollSpeed_inner.add(new JLabel("Text areas scroll speed"));
jp_scrollSpeed_inner.add(js_scrollSpeed);
jp_scrollSpeed.add(BorderLayout.WEST, jp_scrollSpeed_inner);
jp.add(jp_scrollSpeed);
((JSpinner.DefaultEditor)js_scrollSpeed.getEditor()).getTextField().setColumns(2);
this.add(jp);
}
代码示例来源:origin: chewiebug/GCViewer
public OpenFileView() {
setDialogTitle(LocalisationHelper.getString("fileopen_dialog_title"));
setMultiSelectionEnabled(true);
for (ExtensionFileFilter filter: ExtensionFileFilter.EXT_FILE_FILTERS) {
addChoosableFileFilter(filter);
}
addFileCheckBox = new JCheckBox(LocalisationHelper.getString("fileopen_dialog_add_checkbox"), false);
addFileCheckBox.setVerticalTextPosition(SwingConstants.TOP);
addFileCheckBox.setToolTipText(LocalisationHelper.getString("fileopen_dialog_hint_add_checkbox"));
final JPanel panel = new JPanel(new GridBagLayout());
final GridBagConstraints gridBagConstraints = new GridBagConstraints();
gridBagConstraints.anchor = GridBagConstraints.NORTH;
gridBagConstraints.weighty = 2;
panel.add(addFileCheckBox, gridBagConstraints);
setAccessory(panel);
}
代码示例来源:origin: wiztools/rest-client
String toolTipText = "Send authentication credentials before challenge";
jl_premptive.setToolTipText(toolTipText);
jcb_preemptive.setToolTipText(toolTipText);
jl_premptive.setLabelFor(jcb_preemptive);
jl_premptive.addMouseListener(new MouseAdapter() {
代码示例来源:origin: redwarp/9-Patch-Resizer
keepDensity.setToolTipText(Localization.get("keep_same_density_file_tooltip"));
keepDensity.setSelected(Configuration.getSettings().shouldKeepSameDensityFile());
keepDensity.addActionListener(new ActionListener() {
代码示例来源:origin: marytts/marytts
.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");
cbPowerNormalise.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbPowerNormalise.setMargin(new java.awt.Insets(0, 0, 0, 0));
cbBestOnly.setToolTipText("Process a001.wav, but not a001a.wav, a001b.wav etc.");
cbBestOnly.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbBestOnly.setMargin(new java.awt.Insets(0, 0, 0, 0));
代码示例来源:origin: marytts/marytts
.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");
cbPowerNormalise.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbPowerNormalise.setMargin(new java.awt.Insets(0, 0, 0, 0));
cbBestOnly.setToolTipText("Process a001.wav, but not a001a.wav, a001b.wav etc.");
cbBestOnly.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbBestOnly.setMargin(new java.awt.Insets(0, 0, 0, 0));
代码示例来源:origin: apache/pdfbox
caseSensitive.setSelected(false);
caseSensitive.addChangeListener(changeListener);
caseSensitive.setToolTipText("Check for case sensitive search");
代码示例来源:origin: jshiell/checkstyle-idea
suppressErrorsCheckbox.setToolTipText(CheckStyleBundle.message("config.suppress-errors.checkbox.tooltip"));
copyLibsCheckbox.setToolTipText(CheckStyleBundle.message("config.stabilize-classpath.tooltip"));
代码示例来源:origin: magefree/mage
private void createCheckboxes() {
if (!boxesCreated) {
ExpansionInfo[] allExpansions = ExpansionRepository.instance.getWithBoostersSortedByReleaseDate();
for (ExpansionInfo exp : allExpansions) {
JCheckBox pack = new JCheckBox();
pack.setSelected(true);
pack.setText(exp.getCode());
pack.setToolTipText(exp.getName());
pnlPacks.add(pack);
}
pnlPacks.setVisible(true);
this.pack();
boxesCreated = true;
pnlPacks.validate();
}
}
代码示例来源:origin: magefree/mage
chkRollbackTurnsAllowed.setToolTipText("<HTML>Allow to rollback to the start of previous turns<br>\nif all players agree.\n");
chkSpectatorsAllowed.setToolTipText("<HTML>Allow spectators to watch.\n");
chkPlaneChase.setToolTipText("<HTML>Use planechase variant (suitable for all game types).\n");
chkRated.setToolTipText("Indicates if matches will be rated.");
代码示例来源:origin: magefree/mage
ckbFullArtLands.setToolTipText("For example, lands from ZEN/UST/HOU");
代码示例来源:origin: magefree/mage
cSingleton.setToolTipText("Allow only a single copy of each non-land card in your deck.");
String singletonEnabled = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_NEW_DECK_GENERATOR_SINGLETON, "false");
cSingleton.setSelected(Boolean.valueOf(singletonEnabled));
cArtifacts.setToolTipText("Use artifacts and artifact creatures in your deck.");
String artifactEnabled = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_NEW_DECK_GENERATOR_ARTIFACTS, "false");
cArtifacts.setSelected(Boolean.valueOf(artifactEnabled));
cNonBasicLands.setToolTipText("Use non-basic lands in your deck (if applicable).");
String nonBasicEnabled = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_NEW_DECK_GENERATOR_NON_BASIC_LANDS, "false");
cNonBasicLands.setSelected(Boolean.valueOf(nonBasicEnabled));
cColorless.setToolTipText("Allow cards with colorless mana cost.");
String colorlessEnabled = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_NEW_DECK_GENERATOR_COLORLESS, "false");
cColorless.setSelected(Boolean.valueOf(colorlessEnabled));
cAdvanced.setToolTipText("Enable advanced configuration options");
cAdvanced.addItemListener(itemEvent -> {
boolean enable = cAdvanced.isSelected();
代码示例来源:origin: magefree/mage
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.");
chkAutoConnect.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
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.");
chkForceUpdateDB.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
代码示例来源:origin: magefree/mage
cbAllowSpectators.setToolTipText("Allow other players to watch the games of this table.");
cbPlaneChase.setToolTipText("Use Plane Chase variant for the tournament.");
chkRollbackTurnsAllowed.setToolTipText("<HTML>Allow to rollback to the start of previous turns<br> if all players agree. ");
chkRated.setToolTipText("Indicates if matches will be rated.");
代码示例来源:origin: magefree/mage
cardsOrTokens.setSelected(true);
cardsOrTokens.setForeground(Color.white);
cardsOrTokens.setToolTipText("Select to show Cards for the chosen set. When unselected, will show Tokens, Emblems and Planes for the set instead");
cardsOrTokens.addActionListener(e -> mageBook.cardsOrTokens(cardsOrTokens.isSelected()));
buttonsPanel.add(cardsOrTokens);
代码示例来源:origin: ron190/jsql-injection
secondLine.add(this.specialCharacters);
this.lowerCaseCharacters.setToolTipText(I18n.valueByKey("BRUTEFORCE_LCASE_TOOLTIP"));
this.upperCaseCharacters.setToolTipText(I18n.valueByKey("BRUTEFORCE_UCASE_TOOLTIP"));
this.numericCharacters.setToolTipText(I18n.valueByKey("BRUTEFORCE_NUM_TOOLTIP"));
this.specialCharacters.setToolTipText(I18n.valueByKey("BRUTEFORCE_SPEC_TOOLTIP"));
代码示例来源:origin: jshiell/checkstyle-idea
private void initialise() {
relativeFileCheckbox.setText(CheckStyleBundle.message("config.file.relative-file.text"));
relativeFileCheckbox.setToolTipText(CheckStyleBundle.message("config.file.relative-file.tooltip"));
insecureHttpCheckbox.setText(CheckStyleBundle.message("config.file.insecure-http.text"));
insecureHttpCheckbox.setToolTipText(CheckStyleBundle.message("config.file.insecure-http.tooltip"));
代码示例来源:origin: ron190/jsql-injection
this.checkboxIsTamperingBase64.setToolTipText(tooltipIsTamperingBase64);
this.checkboxIsTamperingBase64.setFocusable(false);
JButton labelIsTamperingBase64 = new JButton("Encode SQL expression to Base64");
this.checkboxIsTamperingFunctionComment.setToolTipText(tooltipIsTamperingFunctionComment);
this.checkboxIsTamperingFunctionComment.setFocusable(false);
JButton labelIsTamperingFunctionComment = new JButton("Add comment to function signature, e.g concat/**/()");
this.checkboxIsTamperingEqualToLike.setToolTipText(tooltipIsTamperingEqualToLike);
this.checkboxIsTamperingEqualToLike.setFocusable(false);
JButton labelIsTamperingEqualToLike = new JButton("Replace equal sign '=' with 'like'");
this.checkboxIsTamperingRandomCase.setToolTipText(tooltipIsTamperingRandomCase);
this.checkboxIsTamperingRandomCase.setFocusable(false);
JButton labelIsTamperingRandomCase = new JButton("Transform SQL keywords to random case");
this.checkboxIsTamperingEval.setToolTipText(tooltipIsTamperingEval);
this.checkboxIsTamperingEval.setFocusable(false);
LightScrollPane textAreaIsTamperingEval = new LightScrollPane(new JPopupTextArea(new JTextAreaPlaceholder("Eval")).getProxy());
this.checkboxIsTamperingVersionComment.setToolTipText(tooltipIsTamperingVersionComment);
this.checkboxIsTamperingVersionComment.setFocusable(false);
JButton labelIsTamperingVersionComment = new JButton("Transform SQL keywords to versioned comment, e.g /*!concat*/()");
this.checkboxIsReportingBugs.setToolTipText(tooltipIsReportingBugs);
this.checkboxIsReportingBugs.setFocusable(false);
JButton labelIsReportingBugs = new JButton("Report unhandled exceptions");
this.checkboxIs4K.setToolTipText(tooltipIs4K);
代码示例来源:origin: magefree/mage
chkPennyDreadful.setToolTipText("Will only allow Penny Dreadful legal cards to be shown.");
chkPennyDreadful.setFocusable(false);
chkPennyDreadful.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
chkPiles.setToolTipText("Shows the card in piles by the selected sort.");
chkPiles.setFocusable(false);
chkPiles.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
chkNames.setToolTipText("Search in card names.");
chkNames.setFocusable(false);
chkNames.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
chkTypes.setToolTipText("Search in card types.");
chkTypes.setFocusable(false);
chkTypes.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
chkRules.setToolTipText("Search in card rules.");
chkRules.setFocusable(false);
chkRules.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
chkUnique.setToolTipText("Show only the first found card of every card name.");
chkUnique.setFocusable(false);
chkUnique.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
内容来源于网络,如有侵权,请联系作者删除!