aspose file tools
The moose likes Applets and the fly likes Painting from an applet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Painting from an applet" Watch "Painting from an applet" New topic
Author

Painting from an applet

Christopher Young
Ranch Hand

Joined: Nov 02, 2007
Posts: 63
What's a good way to go about doing this?

I have to make an applet for school, it's a team project (But frankly we haven't been working much as a team) and the only way we know how to (or can think of) is to call repaint() from the paint method.

Is there a better way? Because that seems to use up memory if there's a lot of stuff.


Technology can never substitute for knowledge.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35223
    
    7
Painting in an applet is the same painting in an application; you'd use the paint method (if you're using AWT) or paintComponent (if you're using Swing).

Could it be that there's a memory leak somewhere, or that you're performing something particularly memory-intensive (e.g. image operations)?


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Painting from an applet
 
Similar Threads
inter applet communication
files from applet
can lowering the security option in IE5.0 help us reading file using applet
files from applet
Loading an Applet Takes Time