Hi all friends, I am developing one uploading software it is a total automatic process of uploading user only copy the files in predefind folder and click on upload button once and my software starts uploading one by one from queue and move the file one by one into another folder automatically after completion of uploading.After that in between uploading if user copy more files in that folder my software automatically takes those file for uploading not require to click on upload button again.Now I am facing problem on writing confirmation message of uploading of every file on my swing interface which my servlet writing on PrintStream after completion of writing of every file on destination.But my interafce not writing those confirmation messages on textArea but it is writing confirmation message of last file on Dos-Prompt coz iam running my application from Dos-prompt.I want to write every file's uploading confirmation message on textArea of my swing application.Can any one plz guide me how I can do that.Below r my codes:- swing application(Iam pasting those portion only):-
servlet:-
Regards Bikash
Chantal Ackermann
Ranch Hand
Joined: Sep 28, 2000
Posts: 508
posted
0
hi, your Loglater class is broken, I think. you should not instantiate a Thread from inside itself. this looks like a loop. separate the controll from the logging functionality:
actually, as logging need not be necessarily sync you can use SwingUtilities.invokeLater() in any case. which saves you from checking for the event thread. cheers, Chantal [ May 14, 2003: Message edited by: Chantal Ackermann ]
Bikash Paul
Ranch Hand
Joined: Dec 04, 2001
Posts: 342
posted
0
Hi, I tried to complie ur given class but it is giving me compilation error(Identifier Excepted) on below line:-
Can u plz guide me why it is giving me error. Regards Bikash