In my comp sci class we are supposed to create a project that uses jswing. I want to create a desktop pet.My current ideas is using "setUndecorated(bool)" to make everything but the image panel blank, and then swapping between photos in an array list while moving the frame on the users the screen by using "setLocation(int, int)" to create the illusion that the pet is walking.
The only problem with this is that A: Its seems very inefficient and there's most likely a better way of doing this that i just have not found, And B: the square shape means that the background of the image is included in the frame. for ex:no, tom Brady is not the pet, this is just an example Id like for only tom to be visible here, no white space.
Is there a way to do this? or is there a better way of doing this whole project that i haven't thought of?
pretty sure the answer is "no, and your a complete psychopath who needs to be exiled to Siberia for even thinking of doing this on jswing" but i thought id ask.