Jump to content
Changes to the Jaspersoft community edition download ×

MainFrame exits but main program not


2006 IR Open Dicussion

Recommended Posts

By: Javier - jvacomp

MainFrame exits but main program not

2006-02-22 05:04

I want to call iReport inside a java class.

I've made a simple test from a command msdos window but when I close the iReport window, the main program not finishes, not returns to the msdos prompt. Must I call any method to finish?

(and not System.exit() or setEmbeddedIreport(false) that are the same thing).

 

I'm testing with j2sdk1.4.2_06. The little java code is at the end.

 

Thanks in advance

 

Javier

 

public static void main(String argv[]) {

java.util.Map map = new java.util.HashMap();

it.businesslogic.ireport.gui.MainFrame ireport = new it.businesslogic.ireport.gui.MainFrame(map);

ireport.setEmbeddedIreport(true);

ireport.show();

}

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...