so I'm trying to add a new line on my JLabel to show all the car loan amortization schedule and for some reason, the "\n" doesn't work. Here's the code:
for (int i = 1; i <= newYears; i++) {
interest = newRate2 * amount;
principal = monthlyPayment - interest;
amount = amount - principal;
//console
System.out.println(i + "\t\t" + df.format(principal) + "\t\t" + df.format(interest) + "\t\t" + df.format(amount));
//Second Frame where i want to show the full amortization schedule
second.jlsPayment2.setText("" + i + " " + df.format(principal) + " " + df.format(interest) + " \n" + df.format(amount));
}
any help is greatly appreciated, thanks