• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inherting from JApplet

 
Bharath Mysore
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What difference it will make if inherited from JApplet Class instead of Applet Class?
 
Matt Midcap
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JApplet is a subclass of Applet. It allows you to use Swing components and has all of the components available to it as the Applet (see the hierarchy below).
java.lang.Object
|
>>+--java.awt.Component
|
>>>>>>>>+--java.awt.Container
|
>>>>>>>>>>>>>>+--java.awt.Panel
|
>>>>>>>>>>>>>>>>>>>>+--java.applet.Applet
|
>>>>>>>>>>>>>>>>>>>>>>>>>>+--javax.swing.JApplet
Best Regards,
Matt
[This message has been edited by Matt Midcap (edited June 30, 2000).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic