Paint « Applet « Java Swing Q&A





1. paint() on Java applet is set to endless loop. How do I avoid my methods from doing the same?    stackoverflow.com

I'm creating a game and I want some of the image to be repainted while others to stay constant. I had put my methods in the paint() on java applet but ...

2. JApplet - super.paint(); causes flicker    stackoverflow.com

I'm writing a JApplet right now, and whenever I call super.paint(), the applet flickers. I am using double buffering (drawing to an image, and then rendering that image), but I think super.paint() ...

3. How to (re)paint an AWT applet faster    coderanch.com

Is there a way to repaint this AWT applet of mine little bit faster? If I have 10 columns and 20 rows of textFields, when I repaint the applet, I can literally "see" the repainting being done, like an unseen hand sweeping clean the fields and then another hand putting the new fields in places. I will need to do better. ...

4. Paint() of one applet slows down second applet ?    coderanch.com

Hi all, I have a html page, which contains 2 applets : - the first one contains moving images (spheres) that bouce around randomly To get fluent motion, I calculate their position and repaint often. - the second applet is empty initially, but get notified by the first applet Here my problem occurs: when the 2nd starts to paint, it slows ...