Reputation: 4293
Sorry, Im sort of new to java, and I have a program that runs as a jnlp file, and I was wondering if instead of it downloading the program as a separate window, is it possible to run it as an applet within the browser window?
Upvotes: 1
Views: 1898
Reputation: 132
If you just run the applet code inside html tags it doesn't work. Run them inside script(javascript) tags.
Upvotes: 0
Reputation: 1996
You want to run an app embedded in a html page instead of a own window? You should have a look at this example. Instead of extending a JFrame
you have to extends a JApplet
. Than you can embed a jar into a html page.
Upvotes: 1