Hi,

Oops, I didn't realise you already had that.

I've got roll-over and everything working fine in my game:

www.freewebs.com/commanderkeith

I struggled with the adjustment of the Graphic's transform to paint the 
components properly, and with the adjustment of the mouse coords for my game, 
but trial and error won the day.  I found Component.locationOnScreen() useful 
for this.

By the way, you might not be getting the roll-over effects since you aren't 
updating the BufferedImage with each frame - in my game I paint the Swing 
components from scratch every frame.

Keith
Well so long as you are adjusting mouse coordinates and giving them to the 
Swing components then roll-overs should be seen.  You can use 
Component.locationOnScreen() to calculate the right mouse coordinates.

Also

 in my game I asjust the mouse coordinates of all  transform the Grpahic's 
AffineTransform to be just liketo get the roll-over etc working I
[Message sent by forum member 'commanderkeith' (commanderkeith)]

http://forums.java.net/jive/thread.jspa?messageID=160017

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to