Results 1 to 4 of 4
Thread: New to Java Applets
- 09-21-2011, 09:33 PM #1
Member
- Join Date
- Aug 2010
- Posts
- 3
- Rep Power
- 0
New to Java Applets
Hello all,
I'm new to Java applets and I can't seem to find a tutorial on how to use them with multiple classes. Do I have to extend Applet for every class? What about JApplet? Do extend them for classes that have JFrames..? If anyone could give me an example with applets with multiple classes it would be greatly appreciated.
Thanks,
Zaroth
-
Re: New to Java Applets
The only class that needs to extend JApplet is the applet itself. When I've done applets before, this class has been very small. It just initiates the applet, constructs another class that produces a JPanel, and adds that JPanel to the JApplet's contentPane, handles any applet parameters that are passed in via the HTML code, and that's about it.
- 09-22-2011, 04:27 AM #3
Member
- Join Date
- Aug 2010
- Posts
- 3
- Rep Power
- 0
Re: New to Java Applets
Oh okay, so basically now I need to use some functions from JApplet, I was going to extend JApplet in another class, but I can't because this class already extends something else... What do I do?
-
Re: New to Java Applets
Similar Threads
-
new to Java applets... where to start??
By anarelle in forum Java AppletsReplies: 12Last Post: 07-14-2011, 04:43 AM -
Java applets through proxy
By bayan in forum New To JavaReplies: 7Last Post: 04-28-2011, 10:53 AM -
Java Applets
By kevinnrobert in forum Java AppletsReplies: 1Last Post: 04-02-2010, 01:16 PM -
Java Launcher and Applets
By Bomber_Will in forum Java AppletsReplies: 2Last Post: 01-15-2010, 12:41 AM -
Game using Java Applets
By SecurityCop in forum Java AppletsReplies: 7Last Post: 11-27-2009, 10:34 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks