Display filenames in frame
I have a file which keeps updating, i need to show that updations as a log in a frame,
Have extended the SwingWorker class and in its doInBackground() method i am calling an update function, which opens the file and reads its last line and if last line is not equal to previous string(to avoid duplications) i added that as a Label in frame.
But problem is the frame shows all labels once the background process is done.
Can somebody help me, how to show continues log of file names