java prob
Hello;
Is there a way in java to create a flip card effect. I have two pictures, that are to form a double sided card. Ive come with a way to snapshot them in different angles and finally iterate through them in a loop. Its not very good :) Is there another way?
Basically I need to merge these two pictures together and when a user clicks on them the card flips and displays its back side.
Some examples or links maybe where I could get some further info?
Thank you very much
Joey
Joey_Brown
Junior Poster in Training
73 posts since May 2010
Reputation Points: 10
Solved Threads: 1
I'd be very interested to hear how you did the "snapshot", but yes, there's no way around displaying the incremental stages of the "flipping" graphics in a loop. (But not a loop as such - that's going to mess up Swing's event thread - use a javax.swing.Timer to control the update/repaints).
If you don't need to compute the views on the fly you could maybe use an animated GIF created in Photoshop or whatever to simplify your Java code.
JamesCherrill
Posting Genius
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073