• Post Reply Bookmark Topic Watch Topic
  • New Topic

i need help with a program that has a timer class  RSS feed

 
alaina peeler
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im trying to design an application that displays an animation of a horizontal line segment moving across the screen from left to right, eventually passing across a vertical line.

im a little confused on which variables i should set up. ..right now my variables are..
private Timer timer;
private final int DELAY=20;
private int x,y,moveX,moveY;
//and this is where im confused....do i need variables for the horizontal and vertical lines? and do i need variables x1,y1,x2,y2 to draw my these line segments?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't post the same question multiple times, like you have done here. If you have questions about Stans answer, post them as followups in that thread.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!