View Full Version : how to convert a java application to java applet
elty
August 26th, 2002, 19:45
so, i make a game, compile it to have some .class files, then what do i have to do to make it playable in browser?
chillypacman
September 12th, 2002, 04:12
No idea sorry :(
Badaro
September 12th, 2002, 05:14
Originally posted by elty
so, i make a game, compile it to have some .class files, then what do i have to do to make it playable in browser?
IIRC you need to make it inherit from Applet:
import java.applet.*;
class myclass extends Applet
Also make sure you include the init() method, this is the starting point for applets.
[]s Badaro
Disclaimer: I only did a bit of Java programming, and quite some time ago. I can't guarantee the above information is correct.
Nezzar
September 12th, 2002, 15:40
Do you need the html-code?
Found this on htmlhelp.com: http://htmlhelp.com/reference/wilbur/special/applet.html
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.