• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Overpainting an applet

 
Jochem Gruter
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've an applet object which updates 50 times in a second. I've added this applet object in a JFrame. But how can I paint my own stuff in this applet?
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tutorial: Performing Custom Painting
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jochem Gruter wrote:.. I've added this applet object in a JFrame...

Applets are supposed to be embedded inside web pages. JFrame is a top level container for a stand alone application (think desktop). I wonder why you would want your applet embedded inside a jframe!
 
Jochem Gruter
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:
Jochem Gruter wrote:.. I've added this applet object in a JFrame...

Applets are supposed to be embedded inside web pages. JFrame is a top level container for a stand alone application (think desktop). I wonder why you would want your applet embedded inside a jframe!


The applets is from an external game. From this game I want to read some data like the models and paint the "model id" above the model.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic