Walid
Walid

Reputation: 73

Converting Java classes to applets

I have four classes of Java in Netbeans IDE and one of them contains the main method. I want to use them as applets. How do I do that?

Upvotes: 0

Views: 74

Answers (2)

Francisco Paulo
Francisco Paulo

Reputation: 6322

The quick and short answer, you need to either extend the Applet class or JApplet.

The long answer, read this: http://docs.oracle.com/javase/tutorial/deployment/applet/getStarted.html

Upvotes: 1

Serdar Dogruyol
Serdar Dogruyol

Reputation: 5157

You need to extend Applet class and need to implement the methods that's required for the Applet class.

Upvotes: 1

Related Questions