javax.swing.JEditorPane.setEnabled()方法的使用及代码示例

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

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

JEditorPane.setEnabled介绍

暂无

代码示例

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

private void selectionChanged() {
 boolean sq = radioSonarQube.isSelected();
 urlText.setEnabled(sq);
 urlLabel.setEnabled(sq);
 sonarqubeText.setEnabled(sq);
 sonarcloudText.setEnabled(!sq);
 fireStateChanged();
}

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

private void componentsSetEnabled( boolean enabled ) {
  
  if ( !enabled ) {
    customizerPanel.removeAll();
    customizerPanel.getParent().invalidate();
    ((JComponent)customizerPanel.getParent()).revalidate();
    customizerPanel.getParent().repaint();
    severityComboBox.setSelectedIndex(severity2index.get(HintsSettings.SEVERITY_DEFAUT));
    tasklistCheckBox.setSelected(HintsSettings.IN_TASK_LIST_DEFAULT);
    descriptionTextArea.setText(""); // NOI18N
  }
  
  severityComboBox.setEnabled(enabled);
  tasklistCheckBox.setEnabled(enabled);
  descriptionTextArea.setEnabled(enabled);
}

代码示例来源:origin: org.zaproxy/zap

/**
 * Instantiates a new summary and config panel.
 * 
 * @param summaryTitleText the summary title text
 * @param configButtonText the config button's text
 * @param configButtonActionListener the config button action listener
 */
public SummaryAndConfigPanel(String summaryTitleText, String configButtonText,
    ActionListener configButtonActionListener) {
  super(new GridBagLayout());
  this.summaryTitleText = summaryTitleText;
  configButton = new JButton(configButtonText);
  configButton.setIcon(new ImageIcon(SummaryAndConfigPanel.class
      .getResource("/resource/icon/16/041.png")));
  configButton.addActionListener(configButtonActionListener);
  this.add(configButton, LayoutHelper.getGBC(1, 0, 1, 1, 0.0D, 0.0D));
  summaryArea = new JEditorPane();
  summaryArea.setContentType("text/html");
  summaryArea.setEnabled(false);
  setSummaryContent("");
  this.add(summaryArea, LayoutHelper.getGBC(0, 0, 1, 2, 1.0D, new Insets(3, 3, 3, 3)));
}

代码示例来源:origin: es.gob.afirma/afirma-core-firmaweb

BrowserDialog(final String html, final Frame parent) {
  super(parent, WebSignMessages.getString("BrowserDialog.13"), true); //$NON-NLS-1$
  this.getAccessibleContext().setAccessibleParent(parent);
  final JEditorPane ep = new JEditorPane();
  ep.setEditable(false);
  ep.setEnabled(false);
  ep.addHyperlinkListener(this.linkListener);
  getContentPane().add(new JScrollPane(ep), BorderLayout.CENTER);
  setSize(600, 600);
  final JPanel sur = new JPanel();
  sur.add(new JButton(this.afirmar), BorderLayout.WEST);
  sur.add(new JButton(this.anoFirmar), BorderLayout.EAST);
  getContentPane().add(sur, BorderLayout.SOUTH);
  ep.setEditorKit(this.kit);
  try {
    final Document doc = ep.getDocument();
    this.kit.read(new StringReader(html), doc, 0);
    disableContent(ep);
  }
  catch (final Exception e) {
    LOGGER.severe(WebSignMessages.getString("BrowserDialog.14") + e); //$NON-NLS-1$
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-jsf

selectedTextPane.setEnabled(false);
implSectionLabel.setEnabled(false);

代码示例来源:origin: jawi/ols

this.deviceTypeDetails.setEnabled( true );
this.deviceTypeDetails.setOpaque( false );

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-jsf

selectedTextPane.setEnabled(false);
selectedTextPane.setPreferredSize(null);
jScrollPane1.setViewportView(selectedTextPane);

代码示例来源:origin: sc.fiji/TrakEM2_

if (null != displ.getAnnotation()) annot_editor.setText(displ.getAnnotation());
  annot_editor.setEnabled(true);
} else {
  annot_label.setText("(No selected object)");
  annot_editor.setEnabled(false);

代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities

if (image instanceof RenderedOp)
  operationPanel.setEnabled(true);
  buildOpPane((RenderedOp) image);

代码示例来源:origin: geosolutions-it/jai-ext

if (image instanceof RenderedOp)
  operationPanel.setEnabled(true);
  buildOpPane((RenderedOp) image);

代码示例来源:origin: dcaoyuan/nbscala

tfCondition.setEnabled(isSelected);

代码示例来源:origin: sc.fiji/TrakEM2_

this.annot_editor.setEnabled(false); // by default, nothing is selected
this.annot_editor.setMinimumSize(new Dimension(200, 50));
this.annot_label = new JLabel("(No selected object)");

相关文章

JEditorPane类方法