[4421] in java-interest
Help with repaint()
daemon@ATHENA.MIT.EDU (Steve Schow)
Fri Dec 22 20:20:10 1995
Date: Tue, 19 Dec 1995 16:39:04 -0800
From: sjs@corp.portal.com (Steve Schow)
To: java-interest@java.Eng.Sun.COM
I am trying to create an animated logo. I have 2 problems. One, when
I use a background image, I have to put the drawimage of the background
image in the pain() method in case the window gets resized or covered
up or whatever, but 9 times out of ten, I don't need to redraw the
background image each time.......so how can I keep track so that the
background only gets repainted when it really needs to and only the
superimposed image is getting repainted for each frame? Is that even
possible? maybe not.
In ms-windows land there is the notion of invalid rectangles, which
you can use to keep track which which portions of a window actually
need to be updated......is there a way to do that with Java currently?
Secondly.....When I try to create an animated logo that has frames
with the tranasparent color set to white......Then I set the background
color of the applet frame to white also with
setBackground(Color.white);
The animation flickers and still displays a grey background for the
image. What is going on there?
Thanks in advance
-steve
------------------------------------------------------------------
Steve Schow | But you don't need to use the claw, if you
sjs@corp.portal.com | pick the pear of the big paw paw......
(408) 973-9111 x110 | Have I given you a clue......?
(408) 265-4551 (hm) | - Baloo the Bear
------------------------------------------------------------------
HomePage: http://www.bstage.com/
HomeAddr: sjs@midiman.bstage.com
------------------------------------------------------------------
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com