本文整理了Java中javax.swing.JTextArea.setColumns()
方法的一些代码示例,展示了JTextArea.setColumns()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextArea.setColumns()
方法的具体详情如下:
包路径:javax.swing.JTextArea
类名称:JTextArea
方法名:setColumns
暂无
代码示例来源:origin: marytts/marytts
lSizeValue = new javax.swing.JLabel();
spDescription = new javax.swing.JScrollPane();
taDescription = new javax.swing.JTextArea();
lStatus = new javax.swing.JLabel();
lStatusValue = new javax.swing.JLabel();
taDescription.setColumns(20);
taDescription.setEditable(false);
taDescription.setFont(new java.awt.Font("Courier New", 0, 10));
代码示例来源:origin: marytts/marytts
lSizeValue = new javax.swing.JLabel();
spDescription = new javax.swing.JScrollPane();
taDescription = new javax.swing.JTextArea();
lStatus = new javax.swing.JLabel();
lStatusValue = new javax.swing.JLabel();
taDescription.setColumns(20);
taDescription.setEditable(false);
taDescription.setFont(new java.awt.Font("Courier New", 0, 10));
代码示例来源:origin: marytts/marytts
lName3 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
lName4 = new javax.swing.JLabel();
lNameValue4 = new javax.swing.JLabel();
jTextArea1.setColumns(20);
jTextArea1.setFont(new java.awt.Font("Courier New", 0, 10));
jTextArea1.setLineWrap(true);
代码示例来源:origin: marytts/marytts
lName3 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
lName4 = new javax.swing.JLabel();
lNameValue4 = new javax.swing.JLabel();
jTextArea1.setColumns(20);
jTextArea1.setFont(new java.awt.Font("Courier New", 0, 10));
jTextArea1.setLineWrap(true);
代码示例来源:origin: jersey/jersey
startStopButton = new javax.swing.JButton();
javax.swing.JScrollPane jScrollPane2 = new javax.swing.JScrollPane();
messagesArea = new javax.swing.JTextArea();
javax.swing.JPanel jPanel2 = new javax.swing.JPanel();
javax.swing.JScrollPane jScrollPane1 = new javax.swing.JScrollPane();
messagesArea.setColumns(20);
messagesArea.setLineWrap(true);
messagesArea.setRows(5);
代码示例来源:origin: magefree/mage
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
popupText = new javax.swing.JTextArea();
setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
setLayout(new java.awt.BorderLayout());
popupText.setBackground(new java.awt.Color(204, 204, 204));
popupText.setColumns(20);
popupText.setEditable(false);
popupText.setLineWrap(true);
popupText.setRows(1);
popupText.setWrapStyleWord(true);
popupText.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 2, 2, 2));
add(popupText, java.awt.BorderLayout.PAGE_START);
}// </editor-fold>//GEN-END:initComponents
代码示例来源:origin: org.netbeans.api/org-openide-dialogs
JTextArea area = new JTextArea(text);
Color c = UIManager.getColor("Label.background"); // NOI18N
area.setTabSize(4); // looks better for module sys messages than 8
area.setColumns(40);
代码示例来源:origin: stackoverflow.com
JTextArea textArea = new JTextArea();
textArea.setColumns(10);
textArea.setRows(1);
textArea.setLineWrap(true);
代码示例来源:origin: magefree/mage
lblMessage = new javax.swing.JTextArea();
jScrollPane2 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
btnOK.addActionListener(this::btnOKActionPerformed);
lblMessage.setColumns(20);
lblMessage.setEditable(false);
lblMessage.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
jScrollPane1.setViewportView(lblMessage);
jTextArea1.setColumns(20);
jTextArea1.setEditable(false);
jTextArea1.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
代码示例来源:origin: RaiMan/SikuliX2
title = "Sikuli input request";
JTextArea ta = new JTextArea("");
int w = width * ta.getFontMetrics(ta.getFont()).charWidth('m');
int h = (int) (lines * ta.getFontMetrics(ta.getFont()).getHeight());
JScrollPane sp = new JScrollPane(ta);
sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
JTextArea tm = new JTextArea(msg);
tm.setColumns(width);
tm.setLineWrap(true);
tm.setWrapStyleWord(true);
代码示例来源:origin: magefree/mage
lblProxyType = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
txtFeedbackMessage = new javax.swing.JTextArea();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
txtFeedbackMessage.setColumns(20);
txtFeedbackMessage.setFont(new java.awt.Font("Tahoma", 0, 11));
txtFeedbackMessage.setRows(5);
代码示例来源:origin: winder/Universal-G-Code-Sender
commandTextField = new com.willwinder.universalgcodesender.uielements.components.CommandTextArea(backend);
consoleScrollPane = new javax.swing.JScrollPane();
consoleTextArea = new javax.swing.JTextArea();
commandTableScrollPane = new javax.swing.JScrollPane();
commandTable = new com.willwinder.universalgcodesender.uielements.components.GcodeTable();
consoleTextArea.setColumns(20);
consoleTextArea.setDocument(new LengthLimitedDocument(consoleSize));
consoleTextArea.setRows(5);
代码示例来源:origin: worstcase/gumshoe
public JComponent getDetailField() {
if(detailField==null) {
detailField = new JTextArea();
detailField.setRows(40);
detailField.setColumns(60);
}
return detailField;
}
代码示例来源:origin: stackoverflow.com
JTextArea ta = new JTextArea("");
ta.setColumns(30);
ta.setRows(20);
ta.setEditable(false);
textAreas.add(ta);
代码示例来源:origin: stackoverflow.com
JTextArea textArea = new JTextArea();
textArea.setColumns(10);
textArea.setRows(1);
textArea.setLineWrap(true);
textArea.setWrapStyleWord(true);
代码示例来源:origin: stackoverflow.com
JTextArea area = new JTextArea();
area.setColumns(50);
area.setWrapStyleWord(true);
area.setEditable(false);
area.setBorder(null);
panel.add(new JScrollPane(area)); // probably without scroll pane if all messages are short
代码示例来源:origin: stackoverflow.com
public static void showMessageDialogFormatted(String msg, String title, int messageType, int columnWidth) {
JTextArea textArea = new JTextArea(msg);
textArea.setColumns(columnWidth);
textArea.setRows(msg.length() / columnWidth + 1);
textArea.setLineWrap(true);
textArea.setEditable(false);
textArea.setWrapStyleWord(true);
JOptionPane.showMessageDialog(null, textArea, title, messageType);
}
代码示例来源:origin: stackoverflow.com
JTextArea mytext = new JTextArea();
mytext.setText("mytextline1\nmytextline2\nmytextline3\nmytextline4\nmytextline5\nmytextline6");
mytext.setRows(5);
mytext.setColumns(10);
mytext.setEditable(true);
JScrollPane mypane = new JScrollPane(mytext);
Object[] objarr = {
new JLabel("Enter some text:"),
mypane,
};
JOptionPane Optpane = new JOptionPane(objarr, JOptionPane.PLAIN_MESSAGE);
代码示例来源:origin: fr.ifremer/isis-fish
protected void createMessage() {
$objectMap.put("message", message = new JTextArea());
message.setName("message");
message.setColumns(15);
message.setLineWrap(true);
message.setWrapStyleWord(true);
message.setColumns(80);
message.setRows(2);
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createCheckWindow() {
$objectMap.put("checkWindow", checkWindow = new JTextArea());
checkWindow.setName("checkWindow");
checkWindow.setColumns(15);
checkWindow.setLineWrap(true);
checkWindow.setWrapStyleWord(true);
checkWindow.setEditable(false);
}
内容来源于网络,如有侵权,请联系作者删除!