Re: Problem in displaying message while uploading file.



Manoj Jain wrote:
Hi
I'm developing an application in which i'm parsing a csv file and
uploading into a database. when i parse , i store the elements in an
arraylist of bean. and then i pass that array list to upload onto
database. But it takes huge amount of time, so i decided to display a
messagebox to user to show the progress. But here i face the problem
that, while uploading i can not show any message box. i placed the code
just before parsing, even then it shows message box after completion of
process.

there is no problem in parsing or uploading. i used
SwingUtilities.invokeLater(..) to dispath event handling thread but
still the issue.

i just want to show message that process is executing.

//process starts
here i placed the JOptionPane.showMessageDialog code, but it skips the
displaying window.

//process ends
Use a separate thread for your file uploading. From within the thread,
periodically call the GUI progress report update using invokeLater or
invokeAndWait method.

.



Relevant Pages

  • Re: Desing Question
    ... it's a design question, ... > they are uploading the CSV file, I read the CSV file and return a Data ... > on "Accept Database", I have done that by saving it into a session. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Desing Question
    ... I have a question; it?s a design question, ... they are uploading the CSV file, I read the CSV file and return a Data ... on "Accept Database", I have done that by saving it into a session. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Problem in displaying message while uploading file.
    ... I'm developing an application in which i'm parsing a csv file and ... uploading into a database. ... while uploading i can not show any message box. ... SwingUtilities.invokeLaterto dispath event handling thread but ...
    (comp.lang.java.gui)
  • Problem in displaying message while uploading file.
    ... I'm developing an application in which i'm parsing a csv file and ... uploading into a database. ... while uploading i can not show any message box. ... displaying window. ...
    (comp.lang.java.gui)
  • Re: Visitor access to database
    ... A visitor uploading a file to a database on the server is simple? ... are you really storing these files in a database? ... us with more detailed information, we can help you to know what needs to be ...
    (microsoft.public.frontpage.programming)