Java Swing: JTextArea columns question
- by battousai622
How do i put the text in specific columns with jTextArea?
private javax.swing.JTextArea jTextArea1;
jTextArea1.setColumns(4);
jTextArea1.insert(price, 0); //column 1
jTextArea1.insert(cost, 0); //column 2
jTextArea1.insert(quantity, 0); //column ect..
jTextArea1.insert(itemName, 0);
jTextArea1.insert("\n", 0);