posted 25 years ago
Kavita,
I'm not an expert on this subject, but my first response would have to be no you cannot run a web browser inside your JAVA application. JAVA application runs inside a JVM which allows it to be platform independent. I'm not even going to get into the security issues with running another application inside a JAVA application. Furthermore, the JVM wouldn't know how to interpret the other program's machine code. However, you can run JAVA applets inside a web browser that supports JAVA. If it doesn't, you can always download the plug-in. Finally, you can kick off other applications from JAVA using java.lang.Runtime.exec(). This is not recommend, because you're making your program platform dependent.
Cheers,
-Peter