Results 1 to 4 of 4
Thread: animations with java?
- 09-10-2011, 06:51 AM #1
Member
- Join Date
- Sep 2011
- Posts
- 2
- Rep Power
- 0
animations with java?
I am very new to programming.
I have been tasked to develop a teaching aid for engineering problems.
the program will have the user input the parameters required to solve the problem, then create on the spot animations pertaining to the parameters defined by the user?
I would like to know if this is possible.
Thank you!
- 09-10-2011, 12:46 PM #2
Re: animations with java?
Yes Sure. Look at on a canvas. This is a swing component.
Skype: petrarsentev
http://TrackStudio.com
- 09-10-2011, 04:38 PM #3
Re: animations with java?
No, Canvas is an AWT component. Custom painting in Swing is best done by overriding paintComponent(...) of a JComponent or JPanel. Animation can be handled by a Timer that sets state and calls repaint().
Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials) -- find the sections on custom painting and how to use timers. Since you're new to Swing, you'll need to go through various other parts of the tutorial, including the part about concurrency.
db
- 09-13-2011, 04:09 PM #4
Member
- Join Date
- Sep 2011
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Animations not refreshing
By zshaw in forum New To JavaReplies: 1Last Post: 12-26-2010, 12:05 AM -
Graphics/animations etc. Where to begin?
By Mattedatten in forum New To JavaReplies: 2Last Post: 03-16-2010, 05:51 PM -
SWT Animations Example
By Java Tip in forum SWTReplies: 0Last Post: 06-28-2008, 09:23 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks