I've got such example statement:
for( int i=0; i <= 10000; i++ ) myTextArea.setText( myTextArea.getText()+ i + "\n");
What is the problem? I can't figure it out, why in every iteration of loop the text area isn't refreshing with new String added.
When this loop is iterating, app freezes and a complete text shows after the loop ends.
Why is this happening?
How to modify it, so by every iteration I could see result on text area, as it should be?