I have a Jframe, inside the frame i have a textarea.
public void count() {
int i;
for (i = 0; i < 99999; i++) {
System.out.println(i);
jTextarea.setText("i: " + i);
}
}
the message displayed in the textarea is only the last number. how to display the system.out message in the textarea