Computer Science Canada

Help with Java Applets

Author:  zeldamaster1230 [ Thu Apr 01, 2004 9:09 am ]
Post subject:  Help with Java Applets

I don't know if this has been asked before, but does anyone know how to make an applet stop flashing everytime a button is pressed? Or is it inevitable?

Author:  Tony [ Thu Apr 01, 2004 9:12 am ]
Post subject: 

you should look into double buffering methods... I think Dan might know something about that, it's a part of his project

Author:  Dan [ Thu Apr 01, 2004 1:52 pm ]
Post subject: 

that or uses sprites. alougth it greaty deponds on how u are doing things.

Author:  rizzix [ Thu Apr 01, 2004 3:33 pm ]
Post subject: 

heh look up the code in the help section it explains double buffering: http://www.compsci.ca/v2/viewtopic.php?t=3740


look at the later 2 examples..

Author:  nate [ Tue Apr 13, 2004 9:53 pm ]
Post subject: 

This comes in sort of the same context with zeldamaster1230's question.

I have made this paint GUI applet thing. Basically, you can paint on the applet like a crappy half -ass paint program. Neways, i basically put every shape or line into an array, then repaint the whole array every single time. The problem inevitably occurs when the program has to repaint 200 things. This makes it flashy and slow. Finally, to avoid this problem I was wondering if there was a way to basically talke a screen shot of the applet so you would only have to repaint one screenshot of the applet and not several hundred shapes.

Thanks


: