I have a JTextField in a loop where I'm updating
directory names. However, the method I'm using inside the loop, setText(), doesn't update the JTextField until the last directory name element.
Any ideas how I can get the JTextField to update with each file name in the loop as it's coded to do?
Here's the code statement that is coded inside the for loop. It should, by my way of thinking, update the JTextField in each loop iteration.
=================================================
this.jTextField_Status.setText("Now searching:" + currentDirFileListi].toString());
==================================================
Look forward to anyone's input.
Maybe this needs to be a separate
thread? I also have a System.out.println in the same loop that prints correctly for each directory element.
Thanks.
Mike.