0

Hey, I have a question about Java Applets. I wrote a small applet(just one file) and could run it in my web browser, by making this html file:

<APPLET CODE="MyApplet.class" WIDTH=400 HEIGHT=400>
</APPLET>

And it worked just fine.

I am going to make a bigger project and I am going to make it an applet.

How is this gonna work if I have many classes and packages?

Does only Main class extends JApplet? Or each class should extend JApplet?

Do I have to specify all *.class in html code?

Thanks for your help, I appreciate it.

Edited by slatk3y: n/a

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by gunjannigam
0

Hey, I have a question about Java Applets. I wrote a small applet(just one file) and could run it in my web browser, by making this html file:

<APPLET CODE="MyApplet.class" WIDTH=400 HEIGHT=400>
</APPLET>

And it worked just fine.

I am going to make a bigger project and I am going to make it an applet.

How is this gonna work if I have many classes and packages?

Does only Main class extends JApplet? Or each class should extend JApplet?

Do I have to specify all *.class in html code?

Thanks for your help, I appreciate it.

Only your main class needs to be specified in that HTML code. And make sure all the files your Main class requires are in the same Package as Main Class.Only Main Class needs to extend JApplet.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.