• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Diff Between Applet and JApplet??

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai
i would like to know the difference between Applet and JApplet?
 
Author
Posts: 986
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic