*
The moose likes Swing / AWT / SWT and the fly likes Diff Between Applet and JApplet?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Diff Between Applet and JApplet??" Watch "Diff Between Applet and JApplet??" New topic
Author

Diff Between Applet and JApplet??

Madhu Kaparapu
Ranch Hand

Joined: Jul 04, 2005
Posts: 35
Hai
i would like to know the difference between Applet and JApplet?


Regards,
Madhu Kaparapu.
Brian Cole
Author
Ranch Hand

Joined: Sep 20, 2005
Posts: 862
The main difference is that JApplet contains
a root pane, so it has a content pane and a
glass pane. There are some other differences
too, but nothing huge.

Go ahead and take a look at the javadocs for
each class and you can see the differences
yourself.


bitguru blog
colin shuker
Ranch Hand

Joined: Apr 11, 2005
Posts: 744
hi, sorry if I've ruined this thread, but you mentioned something about a root pane, and I think thats got sumthign to do with my problem.
If its not too much trouble, could you take a quick look.

I have a JApplet as shown here:


And also a normal java class (PacmanGame) that extends JPanel:

I'm trying to insert the addKeyListener(...) method into the constructor
of PacmanGame, but I'm not sure how to do it. I think it has something to do with the contentPane, but I dont have a frame here, everything is being displayed in the HTML file that calls PacmanApplet.

Any help is much appreciated, thanks
 
jQuery in Action, 2nd edition
 
subject: Diff Between Applet and JApplet??
 
Similar Threads
put an applet into a web page
Applet
Confused about class Applet and JApplet
Servlets and Swing
Applet and XML Doc through a browser