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

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

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

JCheckBox.setText介绍

暂无

代码示例

代码示例来源:origin: RipMeApp/ripme

private void changeLocale() {
  statusLabel.setText(rb.getString("inactive"));
  configUpdateButton.setText(rb.getString("check.for.updates"));
  configUpdateLabel.setText(rb.getString("current.version") + ": " + UpdateUtils.getThisJarVersion());
  configThreadsLabel.setText(rb.getString("max.download.threads"));
  configTimeoutLabel.setText(rb.getString("timeout.mill"));
  configRetriesLabel.setText(rb.getString("retry.download.count"));
  configOverwriteCheckbox.setText(rb.getString("overwrite.existing.files"));
  configAutoupdateCheckbox.setText(rb.getString("auto.update"));
  configPlaySound.setText(rb.getString("sound.when.rip.completes"));
  configShowPopup.setText(rb.getString("notification.when.rip.starts"));
  configSaveOrderCheckbox.setText(rb.getString("preserve.order"));
  configSaveLogs.setText(rb.getString("save.logs"));
  configSaveURLsOnly.setText(rb.getString("save.urls.only"));
  configSaveAlbumTitles.setText(rb.getString("save.album.titles"));
  configClipboardAutorip.setText(rb.getString("autorip.from.clipboard"));
  configSaveDescriptions.setText(rb.getString("save.descriptions"));
  configUrlFileChooserButton.setText(rb.getString("download.url.list"));
  configSaveDirButton.setText(rb.getString("select.save.dir") + "...");
  configPreferMp4.setText(rb.getString("prefer.mp4.over.gif"));
  configWindowPosition.setText(rb.getString("restore.window.position"));
  configURLHistoryCheckbox.setText(rb.getString("remember.url.history"));
  optionLog.setText(rb.getString("Log"));
  optionHistory.setText(rb.getString("History"));
  optionQueue.setText(rb.getString("Queue"));
  optionConfiguration.setText(rb.getString("Configuration"));
}

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

cbSelected.setText(desc.getName());
cbSelected.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbSelected.setMargin(new java.awt.Insets(0, 0, 0, 0));

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

cbSelected.setText(desc.getName());
cbSelected.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbSelected.setMargin(new java.awt.Insets(0, 0, 0, 0));

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

cbStereoMono.setText("Stereo to Mono conversion");
cbStereoMono.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbStereoMono.setMargin(new java.awt.Insets(0, 0, 0, 0));
cbDownsample.setText("Sampling rate conversion (down-sampling)");
cbDownsample.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbDownsample.setMargin(new java.awt.Insets(0, 0, 0, 0));
cbPowerNormalise.setText("Power normalisation across recording sessions");
cbPowerNormalise
    .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");
cbBestOnly.setText("Process only the best take of each sentence");
cbBestOnly.setToolTipText("Process a001.wav, but not a001a.wav, a001b.wav etc.");
cbBestOnly.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbHighPassFilter.setText("Remove low-frequency noise below 50 Hz");
cbHighPassFilter.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbHighPassFilter.setMargin(new java.awt.Insets(0, 0, 0, 0));
cbGlobalAmplitude.setText("Global amplitude scaling");
cbGlobalAmplitude.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbGlobalAmplitude.setMargin(new java.awt.Insets(0, 0, 0, 0));
cbTrimSilences.setText("Trim initial and final silences");
cbTrimSilences.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbTrimSilences.setMargin(new java.awt.Insets(0, 0, 0, 0));

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

cbStereoMono.setText("Stereo to Mono conversion");
cbStereoMono.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbStereoMono.setMargin(new java.awt.Insets(0, 0, 0, 0));
cbDownsample.setText("Sampling rate conversion (down-sampling)");
cbDownsample.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbDownsample.setMargin(new java.awt.Insets(0, 0, 0, 0));
cbPowerNormalise.setText("Power normalisation across recording sessions");
cbPowerNormalise
    .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");
cbBestOnly.setText("Process only the best take of each sentence");
cbBestOnly.setToolTipText("Process a001.wav, but not a001a.wav, a001b.wav etc.");
cbBestOnly.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbHighPassFilter.setText("Remove low-frequency noise below 50 Hz");
cbHighPassFilter.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbHighPassFilter.setMargin(new java.awt.Insets(0, 0, 0, 0));
cbGlobalAmplitude.setText("Global amplitude scaling");
cbGlobalAmplitude.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbGlobalAmplitude.setMargin(new java.awt.Insets(0, 0, 0, 0));
cbTrimSilences.setText("Trim initial and final silences");
cbTrimSilences.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbTrimSilences.setMargin(new java.awt.Insets(0, 0, 0, 0));

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

jScrollPane_PromptSet.setNextFocusableComponent(jButton_Record);
jCheckBox_PlaySynthesis.setText("Play synthesized prompt");
jCheckBox_PlaySynthesis.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_PlaySynthesis.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_PlayBackRec.setText("Play back after recording");
jCheckBox_PlayBackRec.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_PlayBackRec.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_ContinueWithNext.setText("Continue with next prompt");
jCheckBox_ContinueWithNext.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_ContinueWithNext.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_PlayClosingBeep.setText("Play beep when microphone is closed");
jCheckBox_PlayClosingBeep.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_PlayClosingBeep.setMargin(new java.awt.Insets(0, 0, 0, 0));

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

public void text(String text) {
  checkBox.setText(text);
}

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

twitterCheckbox.setText("Twitter aggregator");
testColorLabel.setOpaque(true);
testCheckbox.setText("Test Aggregator");

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

jCheckBox_SystemLookAndFeel.setText("Use system look and feel (requires tool restart)");
jCheckBox_SystemLookAndFeel.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_SystemLookAndFeel.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_ShowTestOutput.setText("Display test output in console");
jCheckBox_ShowTestOutput.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_ShowTestOutput.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_ShowTranscription.setText("Show transcription");
jCheckBox_ShowTranscription.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_ShowTranscription.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_ShowPromptCount.setText("Show prompt count and progress bar in Speaker Window");
jCheckBox_ShowPromptCount.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_ShowPromptCount.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_RedAlertMode.setText("Red alert mode");
jCheckBox_RedAlertMode.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_RedAlertMode.setMargin(new java.awt.Insets(0, 0, 0, 0));

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

@PostConstruct
public void initialize() {
  themeLabel.setText(messages.get("Theme"));
  autoHideOption.setText(messages.get("Auto hide window"));
  draggableWindowOption.setText(messages.get("Allows dragging the window around"));
  showTimeOnTrayOption.setText(messages.get("Show remaining time on tray"));
}

代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin

private void updateTargetResolutions() {
  final Set<Resolution> resolutions = controller.getTargetResolutions();
  for (JCheckBox checkBox : Arrays.asList(LDPICheckBox,
                      MDPICheckBox,
                      HDPICheckBox,
                      XHDPICheckBox,
                      XXHDPICheckBox,
                      XXXHDPICheckBox,
                      TVDPICheckBox)) {
    checkBox.removeActionListener(resolutionActionListener);
    final Resolution resolution = ((ResolutionButtonModel) checkBox.getModel()).getResolution();
    checkBox.setSelected(resolutions.contains(resolution));
    final int[] sizes = controller.getScaledSize(resolution);
    checkBox.setText(String.format("%s (%d px x %d px)", resolution, sizes[0], sizes[1]));
    checkBox.addActionListener(resolutionActionListener);
  }
}

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

scopeDropdown.setToolTipText(CheckStyleBundle.message("config.scanscope.tooltip"));
suppressErrorsCheckbox.setText(CheckStyleBundle.message("config.suppress-errors.checkbox.text"));
suppressErrorsCheckbox.setToolTipText(CheckStyleBundle.message("config.suppress-errors.checkbox.tooltip"));
copyLibsCheckbox.setText(CheckStyleBundle.message("config.stabilize-classpath.text"));
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

panelSet.add(btnSetFastSearch);
ckbFullArtLands.setText("Only use full art lands");
ckbFullArtLands.setToolTipText("For example, lands from ZEN/UST/HOU");

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

panelRedownload.setLayout(new java.awt.BorderLayout());
checkboxRedownload.setText("<html>Re-download selected images");
checkboxRedownload.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
panelRedownload.add(checkboxRedownload, java.awt.BorderLayout.CENTER);

代码示例来源:origin: vulnersCom/burp-vulners-scanner

cbxSoftwareShowVuln = new JCheckBox();
cbxSoftwareShowVuln.setSelected(false);
cbxSoftwareShowVuln.setText("Show only vulnerable software");
panel3.add(cbxSoftwareShowVuln, 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 JSeparator separator1 = new JSeparator();
cbxPathSearch.setEnabled(true);
cbxPathSearch.setSelected(false);
cbxPathSearch.setText("");
panel4.add(cbxPathSearch, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(51, 20), null, 0, false));
final JLabel label9 = new JLabel();
cbxProxyEnabled.setEnabled(true);
cbxProxyEnabled.setSelected(false);
cbxProxyEnabled.setText("");
panel4.add(cbxProxyEnabled, new GridConstraints(4, 1, 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 JLabel label14 = new JLabel();
cbxPathScanInScope.setEnabled(true);
cbxPathScanInScope.setSelected(true);
cbxPathScanInScope.setText("");
panel4.add(cbxPathScanInScope, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(51, 20), null, 0, false));

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

lblCreatureCount.setVerifyInputWhenFocusTarget(false);
chkPiles.setText("Piles");
chkPiles.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
chkPiles.setMargin(new java.awt.Insets(3, 2, 2, 2));

代码示例来源:origin: winder/Universal-G-Code-Sender

this.rowsLabel.setText(Localization.getString("mainWindow.swing.rowsLabel"));
this.saveButton.setText(Localization.getString("save"));
this.scrollWindowCheckBox.setText(Localization.getString("mainWindow.swing.scrollWindowCheckBox"));
this.sendButton.setText(Localization.getString("mainWindow.swing.sendButton"));
this.sentRowsLabel.setText(Localization.getString("mainWindow.swing.sentRowsLabel"));
this.showVerboseOutputCheckBox.setText(Localization.getString("mainWindow.swing.showVerboseOutputCheckBox"));
this.showCommandTableCheckBox.setText(Localization.getString("mainWindow.swing.showCommandTableCheckBox"));
this.softResetMachineControl.setText(Localization.getString("mainWindow.swing.softResetMachineControl"));
this.visualizeButton.setText(Localization.getString("mainWindow.swing.visualizeButton"));

代码示例来源: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

@Override
public Component getComponent(
  final JTree tree, Object nodeRenderer, final boolean isSelected, boolean isLeaf, boolean hasFocus
) {
  JCheckBox checkbox = new JCheckBox(this.toString(), this.isSelected());
  checkbox.setFont(
    checkbox.getFont().deriveFont(
      Font.PLAIN | Font.ITALIC,
      checkbox.getFont().getSize()
    )
  );
  
  checkbox.setText(StringUtil.detectUtf8HtmlNoWrap(this.toString()));
  
  if (isSelected) {
    if (hasFocus) {
      checkbox.setBackground(HelperUi.COLOR_FOCUS_GAINED);
      checkbox.setBorder(HelperUi.BORDER_FOCUS_GAINED);
    } else {
      checkbox.setBackground(HelperUi.COLOR_FOCUS_LOST);
      checkbox.setBorder(HelperUi.BORDER_FOCUS_LOST);
    }
  } else {
    checkbox.setBackground(Color.WHITE);
    checkbox.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
  }
  
  checkbox.setComponentOrientation(ComponentOrientation.getOrientation(I18n.getLocaleDefault()));
  return checkbox;
}

相关文章

JCheckBox类方法