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

[549 byte] By [brezaie_adya] at [2007-11-27 7:42:27]
# 1

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.

Arash.Shahkara at 2007-7-12 19:23:19 > top of Java-index,Java Essentials,Java Programming...
# 2

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

brezaie_adya at 2007-7-12 19:23:19 > top of Java-index,Java Essentials,Java Programming...
# 3

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

}

Arash.Shahkara at 2007-7-12 19:23:19 > top of Java-index,Java Essentials,Java Programming...
# 4
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
brezaie_adya at 2007-7-12 19:23:19 > top of Java-index,Java Essentials,Java Programming...
# 5
Desktop class is a part of JDIC package. It is built into the platform in Java SE 6.0 (java.awt.Desktop). If you are using an older version of Java Platform, you have to download JDIC separately and import it manually to your Java program.
Arash.Shahkara at 2007-7-12 19:23:19 > top of Java-index,Java Essentials,Java Programming...
# 6
ok,i will do that...thank you very much for your time
brezaie_adya at 2007-7-12 19:23:19 > top of Java-index,Java Essentials,Java Programming...