Bug 10978 - AWT, System.exit(0) in PreviewDialog.java
Summary: AWT, System.exit(0) in PreviewDialog.java
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: awt renderer (show other bugs)
Version: 0.20.3
Hardware: PC All
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-19 09:56 UTC by Jiri Nejedly
Modified: 2012-04-01 06:52 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Nejedly 2002-07-19 09:56:26 UTC
I was not successful in writing code to show fo file in AWT. So I tried simple 
way:

Fop myFop = new Fop();
String[] myargs = {"-c",fopconfpath + "userconfig.xml","-d", "-l", "en", 
outFile ,"-awt"};      
myFop.main(myargs);

It works,  but after showing preview dialog , program runs through System.exit
(0) in PreviewDialog.java , which makes my client stop. I can modify that class 
and update fop.jar , but it's not very nice solution. Is this instruction 
intentional ?  Can I avoid the stopping somehow ? Can be found some working  
FOP AWT embedding example somewhere ? Thanks.
Comment 1 Oleg Tkachenko 2002-11-13 19:52:27 UTC
Fixed in 0.20.4, now AWTStarter class runs PreviewDialog and exits JVM.
Comment 2 Glenn Adams 2012-04-01 06:52:38 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed