Monday 15 June 2015

java - How i can detect JasperViewer processing report time -


We know that the viewers of JSP will need more time in the report process according to the data, which will display. I want to load it, give user loading information This is my step:

  1. Check, the viewer is processed or done.
  2. If in process, set JLabel and text in "Loading report ..."
  3. If it is, set the text to "" or

    and point 1 , I do not know how the viewer is creating the process? Please help me. Thank you :)

    call view airport () separately thread After the report is created, store an atomic level atom bullion and make it false. In the client checking method, check this frequency from time to time to check what the report is.

    Example pseudocode:

      public zero your class {Private nuclear bullion report; ... private zero getReport () {new thread () {reportRunning = new nuclear bullion (true); JRViewer.viewReport (); ReportRunning.set (wrong); }.Start(); } // Call from time to time and check the UI Private Boolean Client (Check) Return Reporting! = Null & amp; ReportRunning.get (); }    

No comments:

Post a Comment