javax.swing.JTextPane.setName()方法的使用及代码示例

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

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

JTextPane.setName介绍

暂无

代码示例

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

/**
 * This method initializes txtLicense
 *
 * @return javax.swing.JTextPane
 */
private JTextPane getTxtLicense() {
  if (txtLicense == null) {
    txtLicense = new JTextPane();
    txtLicense.setName("txtLicense");
    txtLicense.setEditable(false);
  }
  return txtLicense;
}
/**

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

/**
 * This method initializes txtLicense
 *
 * @return javax.swing.JTextPane
 */
private JTextPane getTxtLicense() {
  if (txtLicense == null) {
    txtLicense = new JTextPane();
    txtLicense.setName("txtLicense");
    txtLicense.setEditable(false);
  }
  return txtLicense;
}
/**

代码示例来源:origin: fr.ifremer/isis-fish

protected void createLogText() {
  $objectMap.put("logText", logText = new JTextPane());
  
  logText.setName("logText");
  logText.setEditable(false);
  logText.setFocusable(false);
}

代码示例来源:origin: zolyfarkas/spf4j

javax.swing.JButton display = new javax.swing.JButton();
jTextPane1.setName("textBox"); // NOI18N
jTextPane1.setOpaque(false);
jTextPane1.setRequestFocusEnabled(false);

代码示例来源:origin: MegaMek/mekhq

private void initComponents() {
  jScrollPane2 = new javax.swing.JScrollPane();
  txtMek = new javax.swing.JTextPane();
  btnOkay = new javax.swing.JButton();
  
  ResourceBundle resourceMap = ResourceBundle.getBundle("mekhq.resources.MekViewDialog", new EncodeControl()); //$NON-NLS-1$
  setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
  setName("Unit View"); // NOI18N
  jScrollPane2.setName("jScrollPane2"); // NOI18N
  txtMek.setContentType(resourceMap.getString("txtMek.contentType")); // NOI18N
  txtMek.setEditable(false);
  txtMek.setFont(Font.decode(resourceMap.getString("txtMek.font"))); // NOI18N
  txtMek.setName("txtMek"); // NOI18N
  txtMek.setText(mview.getMechReadout());
  jScrollPane2.setViewportView(txtMek);
  btnOkay.setText(resourceMap.getString("btnOkay.text")); // NOI18N
  btnOkay.setName("btnOkay"); // NOI18N
  btnOkay.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
      btnOkayActionPerformed(evt);
    }
  });
  
  getContentPane().add(jScrollPane2, BorderLayout.CENTER);
  getContentPane().add(btnOkay, BorderLayout.PAGE_END);
  pack();
}// </editor-fold>//GEN-END:initComponents

代码示例来源:origin: MegaMek/mekhq

txtReadout.setName("txtReadout");
txtReadout.setContentType(resourceMap.getString("txtReadout.contentType")); // NOI18N
txtReadout.setEditable(false);

代码示例来源:origin: fr.inria.wimmics/kggui

private void initComponents() {
  textPaneQuery = new JTextPane();
  textPaneQuery.setName("textPaneQuery");

代码示例来源:origin: Wimmics/corese

private void initComponents() {
  textPaneQuery = new JTextPane();
  textPaneQuery.setName("textPaneQuery");

代码示例来源:origin: MegaMek/mekhq

pnlStats.add(lblSocioIndustrial, gridBagConstraints);
txtSocioIndustrial.setName("lblSocioIndustrial2"); // NOI18N
SocioIndustrialData sid = planet.getSocioIndustrial(currentDate);
String sidText = (null == sid) ? "" : sid.getHTMLDescription();

代码示例来源:origin: MegaMek/mekhq

txtBio.setName("txtBio"); // NOI18N
txtBio.setText(person.getBiography());
txtBio.setBorder(BorderFactory.createTitledBorder("Biography"));

相关文章

JTextPane类方法