How to embed a report ( developed by JReport ) in java application

Posted on 2006-07-24
Medium Priority
Last Modified: 2010-03-31
I have generated a report  using JReport. I want to use this report in my java application. Something like when i click any control ,i should get this report . How can i do it.
Question by:sumashaila
  • 2
LVL 24

Accepted Solution

sciuriware earned 1000 total points
ID: 17166921
You can embed files as resources into a .jar
If you can put the file near a certain .class file and
retrieve it as resource, you can also do it running from the .jar later.
The rest depends a bit on the way to display the file (is it HTML?).
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 1000 total points
ID: 17167720
>> Something like when i click any control ,i should get this report

You need to make some AWT/ Swing/ Applet for this:


You need to handle the button's click (action-event) and then display your report in a panel or something.
LVL 24

Expert Comment

ID: 17378602


Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question