You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
have access to post topics
communicate privately with other members (PM)
not see advertisements between posts
have the possibility to earn one of our surprises if you are an active member
access many other special features that will be introduced later.
Is there a way to code a simple animation such as a picture moving across the screen in a GUI (and not an applet) that uses very little code and is easy to understand?
There is swing timer you can use. On a tick event you can change the image location on a panel.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Is there a way to code a simple animation such as a picture moving across the screen in a GUI (and not an applet)
Sure!
Quote:
that uses very little code and is easy to understand?
and therein lies the rub!
For me, I found that graphics programming was counter-intuitive, especially at first. You really need to read, study, and learn from a decent tutorial on this, but fortunately such a site exists. Please check out: