creating java editor
hi all
i am creatin a small application which performs some type of functionallity as any java ide does but i have a problem in one area in my application when i create a demo.java file i compile it through runtime.exec("javac "+filepath)
this creates class file now i want to run the applicaiton and want to show the output in output window. i run the class file through runtime.exec("java "+filepath) but i dont know how can i show the output in myapplication's output window.i mean how can i fetch the output generated by program .
any smallhelp will be appriciated
thanks

