Hi,
I put a JTextArea on mu gui.But i can't print multiple lines on that?Why is that?.I have created a Item class and then created an Item object array in my gui.Then i print it on my jTextArea.This is my code i have put in my button.
jTextArea2.setText("Item Name"+" | "+"Price"+" | "+"Item Number");
jTextArea2.setText("\n");
for(int i=0;i<4;i++){
jTextArea2.setText(""+item[i].toString());
jTextArea2.setText("\n");}