Im making a program that outputs, the numbers 1-10 in one column, the square of this in another and in the third the number in cube.
How can i make the program a lit
It's better to use JTable in your case.
But you can use HTML Tags and do something like this:
builder.append("column1 column2 ");
string.append("");
string.append(.....);
string.append(" ");
...
string.append(" ");
string.append("
");
Or:
textArea.setText("column1\t\tcolumn2\n");
textArea.append("column1\t\tcolumn2\n");
textArea.append(...);
But it's not recommended since your text can go out of the column.