All:

I am writing a "headless" (i.e. non GUI) Java server application to do a 
document merge then printing of the merged document. (JDK v1.4 and Windows 2000 
Server).

Basically it goes as follows: 
- Get a message off the queue (tab delimited data)
- Merge the incoming with a "template" HTML file
- open a JFrame and wait for JFrame to end
   - In the JFrame, render the HTML using JEditorPane, print the merged HTML 
file and then dispose of JFrame
- send reply message

I have all the validation and error checking done outside of the JFrame class 
including verifying the printer.  So almost nothing should go wrong with 
printing of the document but sometimes a weird exception may happen.

I would like to post a error code via a method or something just in case there 
is a problem in the JFrame.  But I cannot seems to figure it out.  

      JFrame frame = new WorkFrame();
      // create synchronized lock 
      frame.show();
      // wait on lock
      // some how check status of JFrame

Anybody, know how to get a error code / status out of a JFrame?  Or any other 
way?

Thanks
Roger... 


---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk

Reply via email to