Loading files asynchronously using SwingWorker: method communication problem



In my app I have two methods load() and parse() that handle
correspondingly reading from file operation and parsing that file into
my internal data structure. load() method makes use of SwingWorker
class and therefore once I enter SwingWorker#done() i must somehow
call parse() method. I can not do it from SwingWorker#done() directly
because this is logically wrong to call parse form load

So can you give me some advice on what is best way to call parse()?
.



Relevant Pages

  • Re: Loading files asynchronously using SwingWorker: method communication problem
    ... correspondingly reading from file operation and parsing that file into ... load() method makes use of SwingWorker ... call parse() method. ... Since I think you are calling loadin response to a GUI event, it makes sense to me to put both loadand parsein a single method and then invoke the worker thread on the whole thing. ...
    (comp.lang.java.programmer)
  • History Replacement And New Location Combined
    ... Since each page would run restorePage() function on the ... // Parse the form and add parameters to the current location.search ... As could be seen from the code above, I synchronize replace and load ... requests, giving the replace request a full second to execute. ...
    (comp.lang.javascript)
  • Re: Service wont start???
    ... Event Source: MSSQLServerOLAPService ... The DOM parser failed to load and parse the ... File position: 0. ...
    (microsoft.public.sqlserver.olap)
  • Re: Loading files asynchronously using SwingWorker: method communication problem
    ... correspondingly reading from file operation and parsing that file into ... load() method makes use of SwingWorker ... call parse() method. ...
    (comp.lang.java.programmer)
  • Re: Sending existing XML document to a document-literal web service
    ... When you say you don't want to parse the object and load it into an object, ... My understanding is that you can use XmlSerializer to read the XML document ... which was then sent out through the web service. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)