Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a Wheel Animation via Swing

Status
Not open for further replies.

cgarci1

MIS
Mar 31, 2002
1
US
I have 23 wheel images that is similar to wheel of fortune (with 23 different dollar value on the wheel) located in C:\wheel\Images and The 23 images illustrates the position a pointer might be on of the wheel dollar amount.

1)I want my swing program to read all the 23 images from c:\Wheel\Images.

2) I want the program to display all 23 images continuously for 5 seconds (to have a spinning animation effect).

3) I want the program to stop randomly at one image.

4) The files are labeled w500.jpg,w400.jpg,w200.jpg, etc....
if it stops randomly on any image, for example say w400.jpg ...I want it to parse the image name to get the dollar value int(400). w[$dollar value].jpg!

I plan to send dollar value as an event to a
an event handler. Can anyone help me?

 
You'd probably have better luck if you posted your question to the appropriate forum. This forum is for J2EE, not swing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top