javax.swing.JTextArea.setRequestFocusEnabled()方法的使用及代码示例

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

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

JTextArea.setRequestFocusEnabled介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-appsrv

private void initDescriptionComponent() {
  java.awt.GridBagConstraints gridBagConstraints;
  descriptionTextArea = new javax.swing.JTextArea();
  descriptionTextArea.setEditable(false);
  descriptionTextArea.setFont(javax.swing.UIManager.getFont("Label.font")); //NOI18N
  descriptionTextArea.setText(bundle.getString(this.resourceName + "_Description"));  //NOI18N
  descriptionTextArea.setDisabledTextColor(javax.swing.UIManager.getColor("Label.foreground"));  //NOI18N
  descriptionTextArea.setRequestFocusEnabled(false);
  descriptionTextArea.setEnabled(false);
  descriptionTextArea.setOpaque(false);
  gridBagConstraints = new java.awt.GridBagConstraints();
  gridBagConstraints.gridx = 0;
  gridBagConstraints.gridy = this.y; this.y++;
  gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
  gridBagConstraints.weightx = 1.0;
  gridBagConstraints.weighty = 0.0;
  gridBagConstraints.insets = new java.awt.Insets(12, 12, 20, 11);
  add(descriptionTextArea, gridBagConstraints);        
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-nativeexecution-nb

jTextArea1.setWrapStyleWord(true);
jTextArea1.setMargin(new java.awt.Insets(5, 5, 5, 5));
jTextArea1.setRequestFocusEnabled(false);
jScrollPane1.setViewportView(jTextArea1);

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-appsrv

private void initDescriptionComponent() {
  java.awt.GridBagConstraints gridBagConstraints;
  
  descriptionTextArea = new javax.swing.JTextArea();
  descriptionTextArea.setEditable(false);
  descriptionTextArea.setFont(javax.swing.UIManager.getFont("Label.font")); //NOI18N
  descriptionTextArea.setText(bundle.getString(this.resourceName + "_Description"));  //NOI18N
  descriptionTextArea.setDisabledTextColor(javax.swing.UIManager.getColor("Label.foreground"));  //NOI18N
  descriptionTextArea.setRequestFocusEnabled(false);
  descriptionTextArea.setEnabled(false);
  descriptionTextArea.setOpaque(false);
  gridBagConstraints = new java.awt.GridBagConstraints();
  gridBagConstraints.gridx = 0;
  gridBagConstraints.gridy = this.y; this.y++;
  gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
  gridBagConstraints.weightx = 1.0;
  gridBagConstraints.weighty = 0.0;
  gridBagConstraints.insets = new java.awt.Insets(12, 12, 20, 11);
  add(descriptionTextArea, gridBagConstraints);        
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-nativeexecution-nb

errorsArea.setRows(5);
errorsArea.setFocusable(false);
errorsArea.setRequestFocusEnabled(false);
jScrollPane1.setViewportView(errorsArea);

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

jTADescricao.setFocusable(false);
jTADescricao.setMinimumSize(new java.awt.Dimension(100, 50));
jTADescricao.setRequestFocusEnabled(false);
jTADescricao.setVerifyInputWhenFocusTarget(false);
jSPDescricao.setViewportView(jTADescricao);

代码示例来源:origin: igvteam/igv

textArea1.setRows(2);
textArea1.setMaximumSize(new Dimension(2147483647, 60));
textArea1.setRequestFocusEnabled(false);
textArea1.setEditable(false);
contentPanel.add(textArea1);

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

jTADescricao.setBorder(null);
jTADescricao.setFocusable(false);
jTADescricao.setRequestFocusEnabled(false);
jTADescricao.setVerifyInputWhenFocusTarget(false);
jSPDescricao.setViewportView(jTADescricao);
jTALicenca.setBorder(null);
jTALicenca.setFocusable(false);
jTALicenca.setRequestFocusEnabled(false);
jTALicenca.setVerifyInputWhenFocusTarget(false);
jSPLicenca.setViewportView(jTALicenca);

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-appsrv

descriptionTextArea.setFocusable(false);
descriptionTextArea.setOpaque(false);
descriptionTextArea.setRequestFocusEnabled(false);
descriptionTextArea.setVerifyInputWhenFocusTarget(false);

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-debugger-common2

header.setRequestFocusEnabled(false);
header.setWrapStyleWord(true);
header.setLineWrap(true);

相关文章

JTextArea类方法