report generator
I have some problems with my application.i have a SQL database with Java interface and I need to integrate a free report generator,who can access the database and show reports of stock,sales,etc,maybe even export the fors in other formats. I also need the source code for launching an external file or program from my application. i have a menu called tools with the options calculator and notepad,and I need the code for launching them when I choose from the menu.Also, my Help File is a .doc, and I have to open it when I click on HELP menu
Do not ask for complete source codes. Developers are here to help you, not to write programs. Also, you can always search the web (and search Java Docs of course) before asking questions, most of the time it helps you faster!
Take a look at: http://java.sun.com/docs/books/tutorial/uiswing/misc/desktop.html
It helps you to do your desktop integration stuff.
I don't want to use File Chooser,I don't need the Dialog to appear.I have a menu,and one of the options is miHelp
....................
private JMenuItem miHelp;
miHelp.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
onHelp(e);
}
});
when I select miHelp it should do the function onHelp
private void onHelp(ActionEvent e)
{
?
}
here is my problem,what I want is the program to open Help.doc or Help.txt, without any Dialogs popping out
Did you even read the article I gave you? hah?
if (Desktop.isDesktopSupported() && Desktop.isSupported(Desktop.Action.OPEN)) {
Desktop.getDesktop().open(new File("Help.doc"));
} else {
// Tell the user that his desktop is not supported by JDIC
}
yes, i have read that article, but I can't find Desktop, i have a lot of errors because of that. how can I import it? it's not in any library i have