Hello all
In my code (which finally works thanks so much) I am trying to get the text to print to the next line each time it goes through the loop. I have tried to add \n, "\n", and "\n\n" to the end of the append line (after actInt) as well as add all three to the beginning of the line (before loop). When I add any of these the calculate button does not work, when I take them out the text prints all on about 4 lines instead of 80 lines. Any ideas?
Here is the section of code:
StringBuffer money = new StringBuffer();
for (int loop = 1; loop <= t; loop ++){
money.append(loop + monthly + balance + actInt);
future.setText(money.toString());
repaint();
}