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

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

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

JCheckBox.setText介绍

暂无

代码示例

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

  1. private void changeLocale() {
  2. statusLabel.setText(rb.getString("inactive"));
  3. configUpdateButton.setText(rb.getString("check.for.updates"));
  4. configUpdateLabel.setText(rb.getString("current.version") + ": " + UpdateUtils.getThisJarVersion());
  5. configThreadsLabel.setText(rb.getString("max.download.threads"));
  6. configTimeoutLabel.setText(rb.getString("timeout.mill"));
  7. configRetriesLabel.setText(rb.getString("retry.download.count"));
  8. configOverwriteCheckbox.setText(rb.getString("overwrite.existing.files"));
  9. configAutoupdateCheckbox.setText(rb.getString("auto.update"));
  10. configPlaySound.setText(rb.getString("sound.when.rip.completes"));
  11. configShowPopup.setText(rb.getString("notification.when.rip.starts"));
  12. configSaveOrderCheckbox.setText(rb.getString("preserve.order"));
  13. configSaveLogs.setText(rb.getString("save.logs"));
  14. configSaveURLsOnly.setText(rb.getString("save.urls.only"));
  15. configSaveAlbumTitles.setText(rb.getString("save.album.titles"));
  16. configClipboardAutorip.setText(rb.getString("autorip.from.clipboard"));
  17. configSaveDescriptions.setText(rb.getString("save.descriptions"));
  18. configUrlFileChooserButton.setText(rb.getString("download.url.list"));
  19. configSaveDirButton.setText(rb.getString("select.save.dir") + "...");
  20. configPreferMp4.setText(rb.getString("prefer.mp4.over.gif"));
  21. configWindowPosition.setText(rb.getString("restore.window.position"));
  22. configURLHistoryCheckbox.setText(rb.getString("remember.url.history"));
  23. optionLog.setText(rb.getString("Log"));
  24. optionHistory.setText(rb.getString("History"));
  25. optionQueue.setText(rb.getString("Queue"));
  26. optionConfiguration.setText(rb.getString("Configuration"));
  27. }

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

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

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

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

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

  1. cbStereoMono.setText("Stereo to Mono conversion");
  2. cbStereoMono.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  3. cbStereoMono.setMargin(new java.awt.Insets(0, 0, 0, 0));
  4. cbDownsample.setText("Sampling rate conversion (down-sampling)");
  5. cbDownsample.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  6. cbDownsample.setMargin(new java.awt.Insets(0, 0, 0, 0));
  7. cbPowerNormalise.setText("Power normalisation across recording sessions");
  8. cbPowerNormalise
  9. .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");
  10. cbBestOnly.setText("Process only the best take of each sentence");
  11. cbBestOnly.setToolTipText("Process a001.wav, but not a001a.wav, a001b.wav etc.");
  12. cbBestOnly.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  13. cbHighPassFilter.setText("Remove low-frequency noise below 50 Hz");
  14. cbHighPassFilter.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  15. cbHighPassFilter.setMargin(new java.awt.Insets(0, 0, 0, 0));
  16. cbGlobalAmplitude.setText("Global amplitude scaling");
  17. cbGlobalAmplitude.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  18. cbGlobalAmplitude.setMargin(new java.awt.Insets(0, 0, 0, 0));
  19. cbTrimSilences.setText("Trim initial and final silences");
  20. cbTrimSilences.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  21. cbTrimSilences.setMargin(new java.awt.Insets(0, 0, 0, 0));

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

  1. cbStereoMono.setText("Stereo to Mono conversion");
  2. cbStereoMono.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  3. cbStereoMono.setMargin(new java.awt.Insets(0, 0, 0, 0));
  4. cbDownsample.setText("Sampling rate conversion (down-sampling)");
  5. cbDownsample.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  6. cbDownsample.setMargin(new java.awt.Insets(0, 0, 0, 0));
  7. cbPowerNormalise.setText("Power normalisation across recording sessions");
  8. cbPowerNormalise
  9. .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");
  10. cbBestOnly.setText("Process only the best take of each sentence");
  11. cbBestOnly.setToolTipText("Process a001.wav, but not a001a.wav, a001b.wav etc.");
  12. cbBestOnly.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  13. cbHighPassFilter.setText("Remove low-frequency noise below 50 Hz");
  14. cbHighPassFilter.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  15. cbHighPassFilter.setMargin(new java.awt.Insets(0, 0, 0, 0));
  16. cbGlobalAmplitude.setText("Global amplitude scaling");
  17. cbGlobalAmplitude.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  18. cbGlobalAmplitude.setMargin(new java.awt.Insets(0, 0, 0, 0));
  19. cbTrimSilences.setText("Trim initial and final silences");
  20. cbTrimSilences.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  21. cbTrimSilences.setMargin(new java.awt.Insets(0, 0, 0, 0));

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

  1. jScrollPane_PromptSet.setNextFocusableComponent(jButton_Record);
  2. jCheckBox_PlaySynthesis.setText("Play synthesized prompt");
  3. jCheckBox_PlaySynthesis.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  4. jCheckBox_PlaySynthesis.setMargin(new java.awt.Insets(0, 0, 0, 0));
  5. jCheckBox_PlayBackRec.setText("Play back after recording");
  6. jCheckBox_PlayBackRec.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  7. jCheckBox_PlayBackRec.setMargin(new java.awt.Insets(0, 0, 0, 0));
  8. jCheckBox_ContinueWithNext.setText("Continue with next prompt");
  9. jCheckBox_ContinueWithNext.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  10. jCheckBox_ContinueWithNext.setMargin(new java.awt.Insets(0, 0, 0, 0));
  11. jCheckBox_PlayClosingBeep.setText("Play beep when microphone is closed");
  12. jCheckBox_PlayClosingBeep.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  13. jCheckBox_PlayClosingBeep.setMargin(new java.awt.Insets(0, 0, 0, 0));

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

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

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

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

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

  1. jCheckBox_SystemLookAndFeel.setText("Use system look and feel (requires tool restart)");
  2. jCheckBox_SystemLookAndFeel.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  3. jCheckBox_SystemLookAndFeel.setMargin(new java.awt.Insets(0, 0, 0, 0));
  4. jCheckBox_ShowTestOutput.setText("Display test output in console");
  5. jCheckBox_ShowTestOutput.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  6. jCheckBox_ShowTestOutput.setMargin(new java.awt.Insets(0, 0, 0, 0));
  7. jCheckBox_ShowTranscription.setText("Show transcription");
  8. jCheckBox_ShowTranscription.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  9. jCheckBox_ShowTranscription.setMargin(new java.awt.Insets(0, 0, 0, 0));
  10. jCheckBox_ShowPromptCount.setText("Show prompt count and progress bar in Speaker Window");
  11. jCheckBox_ShowPromptCount.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  12. jCheckBox_ShowPromptCount.setMargin(new java.awt.Insets(0, 0, 0, 0));
  13. jCheckBox_RedAlertMode.setText("Red alert mode");
  14. jCheckBox_RedAlertMode.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
  15. jCheckBox_RedAlertMode.setMargin(new java.awt.Insets(0, 0, 0, 0));

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

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

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

  1. private void updateTargetResolutions() {
  2. final Set<Resolution> resolutions = controller.getTargetResolutions();
  3. for (JCheckBox checkBox : Arrays.asList(LDPICheckBox,
  4. MDPICheckBox,
  5. HDPICheckBox,
  6. XHDPICheckBox,
  7. XXHDPICheckBox,
  8. XXXHDPICheckBox,
  9. TVDPICheckBox)) {
  10. checkBox.removeActionListener(resolutionActionListener);
  11. final Resolution resolution = ((ResolutionButtonModel) checkBox.getModel()).getResolution();
  12. checkBox.setSelected(resolutions.contains(resolution));
  13. final int[] sizes = controller.getScaledSize(resolution);
  14. checkBox.setText(String.format("%s (%d px x %d px)", resolution, sizes[0], sizes[1]));
  15. checkBox.addActionListener(resolutionActionListener);
  16. }
  17. }

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

  1. scopeDropdown.setToolTipText(CheckStyleBundle.message("config.scanscope.tooltip"));
  2. suppressErrorsCheckbox.setText(CheckStyleBundle.message("config.suppress-errors.checkbox.text"));
  3. suppressErrorsCheckbox.setToolTipText(CheckStyleBundle.message("config.suppress-errors.checkbox.tooltip"));
  4. copyLibsCheckbox.setText(CheckStyleBundle.message("config.stabilize-classpath.text"));
  5. 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. panelSet.add(btnSetFastSearch);
  2. ckbFullArtLands.setText("Only use full art lands");
  3. ckbFullArtLands.setToolTipText("For example, lands from ZEN/UST/HOU");

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

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

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

  1. cbxSoftwareShowVuln = new JCheckBox();
  2. cbxSoftwareShowVuln.setSelected(false);
  3. cbxSoftwareShowVuln.setText("Show only vulnerable software");
  4. 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));
  5. final JSeparator separator1 = new JSeparator();
  6. cbxPathSearch.setEnabled(true);
  7. cbxPathSearch.setSelected(false);
  8. cbxPathSearch.setText("");
  9. 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));
  10. final JLabel label9 = new JLabel();
  11. cbxProxyEnabled.setEnabled(true);
  12. cbxProxyEnabled.setSelected(false);
  13. cbxProxyEnabled.setText("");
  14. 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));
  15. final JLabel label14 = new JLabel();
  16. cbxPathScanInScope.setEnabled(true);
  17. cbxPathScanInScope.setSelected(true);
  18. cbxPathScanInScope.setText("");
  19. 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

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

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

  1. this.rowsLabel.setText(Localization.getString("mainWindow.swing.rowsLabel"));
  2. this.saveButton.setText(Localization.getString("save"));
  3. this.scrollWindowCheckBox.setText(Localization.getString("mainWindow.swing.scrollWindowCheckBox"));
  4. this.sendButton.setText(Localization.getString("mainWindow.swing.sendButton"));
  5. this.sentRowsLabel.setText(Localization.getString("mainWindow.swing.sentRowsLabel"));
  6. this.showVerboseOutputCheckBox.setText(Localization.getString("mainWindow.swing.showVerboseOutputCheckBox"));
  7. this.showCommandTableCheckBox.setText(Localization.getString("mainWindow.swing.showCommandTableCheckBox"));
  8. this.softResetMachineControl.setText(Localization.getString("mainWindow.swing.softResetMachineControl"));
  9. this.visualizeButton.setText(Localization.getString("mainWindow.swing.visualizeButton"));

代码示例来源: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. @Override
  2. public Component getComponent(
  3. final JTree tree, Object nodeRenderer, final boolean isSelected, boolean isLeaf, boolean hasFocus
  4. ) {
  5. JCheckBox checkbox = new JCheckBox(this.toString(), this.isSelected());
  6. checkbox.setFont(
  7. checkbox.getFont().deriveFont(
  8. Font.PLAIN | Font.ITALIC,
  9. checkbox.getFont().getSize()
  10. )
  11. );
  12. checkbox.setText(StringUtil.detectUtf8HtmlNoWrap(this.toString()));
  13. if (isSelected) {
  14. if (hasFocus) {
  15. checkbox.setBackground(HelperUi.COLOR_FOCUS_GAINED);
  16. checkbox.setBorder(HelperUi.BORDER_FOCUS_GAINED);
  17. } else {
  18. checkbox.setBackground(HelperUi.COLOR_FOCUS_LOST);
  19. checkbox.setBorder(HelperUi.BORDER_FOCUS_LOST);
  20. }
  21. } else {
  22. checkbox.setBackground(Color.WHITE);
  23. checkbox.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
  24. }
  25. checkbox.setComponentOrientation(ComponentOrientation.getOrientation(I18n.getLocaleDefault()));
  26. return checkbox;
  27. }

相关文章

JCheckBox类方法