Results 1 to 2 of 2
Thread: How to draw line with animation
- 11-18-2010, 10:13 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 1
- Rep Power
- 0
-
I would use Swing, draw in a JPanel's paintComponent method, have class fields x1, y1, x2, y2, and in a Swing Timer change x2 and y2 incrementally and then call repaint on the JPanel. If I weren't familiar with these terms, I'd study up on them in the Oracle Swing and Graphics tutorials. YMMV.
Similar Threads
-
How to draw both line to smooth joining in png
By luoluo in forum Java 2DReplies: 7Last Post: 04-18-2010, 07:09 AM -
Draw line
By janes in forum Java 2DReplies: 6Last Post: 03-25-2010, 10:48 PM -
Draw more than one line on run time
By aiman in forum Java AppletsReplies: 3Last Post: 12-10-2009, 02:44 AM -
How to Draw line in Java
By Java Tip in forum java.awtReplies: 0Last Post: 06-22-2008, 11:08 PM -
How to draw a thick line
By johnt in forum Java 2DReplies: 1Last Post: 05-31-2007, 04:27 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks