Look at createPreviewDialog(): There's a WindowListener being added that
performs System.exit(0). You need to change that, obviously.
On 04.06.2003 17:29:09 Christoph Strehl wrote:
That example works fine for me ... except this little thing :
My own application exits if I close the AWT Viewer
]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 11:49 AM
Subject: Re: Running FOP from Java
Oh well, it was so simple. I've added an example showing the AWT Viewer
to maintenance branch CVS. If you're not into downloading from CVS you
can find the example here:
http://cvs.apache.org
Frag doch demnächst mal direkt ;o)
wie klein die Welt doch ist.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
]
Sent by: [EMAIL PROTECTED]
05/28/03 09:27 AM
Please respond to fop-user
To:[EMAIL PROTECTED]
cc:
Subject:Re: Re: Running FOP from Java
Frag doch demnächst mal direkt ;o)
wie klein die Welt doch ist
Yeah, that's a deficiency in the documentation right now. May I point
you to the class org.apache.fop.apps.AWTStarter.java for the moment? It
should give you at least some pointers how this would be done. I'm
trying to find some time to come up with an example similar to the
Example*2*.java. But
Oh well, it was so simple. I've added an example showing the AWT Viewer
to maintenance branch CVS. If you're not into downloading from CVS you
can find the example here:
http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-fop/examples/embedding/java/embedding/Attic/ExampleAWTViewer.java?rev=1.1.2.1
Christoph Strehl wrote:
I am using FOP do print the content of my Java application.
...
public class FOPStarter extends Thread
{
...
public void run()
{
org.apache.fop.apps.Fop.main(args);
You should never call Fop.main directly. Use the AWT or print
renderer directly, the same way
own Java Gui, I don't
have problem converting my xml via xsl to FO.
Any ideas?
Christoph S.
- Original Message -
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 26, 2003 11:09 PM
Subject: Re: Running FOP from Java
Christoph Strehl wrote:
I am using FOP do