Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writting confirmation message??

 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bikash Paul:
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

It Should be -

HTH,
- Manish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic