Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Java Applet Query
Roders1234
post Apr 9 2008, 05:42 PM
Post #1


Newbie
*

Group: Members
Posts: 6
Joined: 28-October 07
Member No.: 52,152



Hey there, I have made an applet that shows images moving about the screen. I have pause/resume buttons that work. But i've noticed that when the applet is interuppted by something i.e moving another window over it, it will automatically repaint.

My question is how can I stop this? How can I make it so that the only time that paint is called is when I want it to be called?

Thanks in advance!

This post has been edited by Roders1234: Apr 9 2008, 05:42 PM
Go to the top of the page
 
+Quote Post
CrashCore
post Apr 21 2008, 11:49 PM
Post #2


Super Member
*********

Group: [HOSTED]
Posts: 225
Joined: 8-April 05
Member No.: 5,385



Since no one has posted on this, I'll try a suggestion...

Can the Graphics object be declared final or static, or something like that?

I'm not sure if this would help, but it seems like the browser is always calling repaint() so I'm not sure if there is much you can do.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Java editor(72)
  2. Auto Run Java Program(11)
  3. Java Script Drop Down Menu With Css(2)
  4. [help] Java Script: Window.open(8)
  5. How To Create Java Button Or Frame(12)
  6. Java Basic Program Guidance(6)
  7. Java Helpdesk(8)
  8. What's The Relationship Between Javascript And Java(5)
  9. Problem With Java Script Popup Form(1)
  10. The Power Of Java(14)
  11. Jsp Or Java Chat Script Like Mig33(4)
  12. I Need Help With Java(3)
  13. Text Image Java Problem(1)
  14. Help Deploying Java(0)
  15. Which Is The Best Java Web Framework?(0)
  1. Helpful Registry Edit For Java Programmers(2)
  2. Java Exercise Help(2)
  3. Java Iterator Help(2)
  4. Beginning Java(10)
  5. Java In A High School Software Design Course(5)
  6. Java Part 1(2)
  7. Circular Movment/animation In Java?(6)
  8. Java Or C++(2)
  9. Java Vs Javascript(11)
  10. Java Object[][] Help(2)
  11. Learn Java Programming Language Online Step By Step(0)
  12. Java Game(2)
  13. Call Pdf995 From Java(0)


 



- Lo-Fi Version Time is now: 27th July 2008 - 01:38 AM