i try searching but either im not getting it or something is right, so here i am asking how can i add a timer to my java program
Printable View
i try searching but either im not getting it or something is right, so here i am asking how can i add a timer to my java program
you can use javax.swing.Timer or java.util.Timer
can you explain alittle better plz? because i saw that but i dont understand some of itQuote:
Originally Posted by ComputerJy
I think it'd be a better idea to check out what sun has to say about the swing timers
i read that butQuote:
Originally Posted by ComputerJy
what is this? and i dont mean this line of code but the word "this" after speedCode:timer = new Timer(speed, this);
That section is clearly taken from this file
that still doesnt tell me whatQuote:
Originally Posted by ComputerJy
that this meanCode:timer = new Timer(speed, this);
it's a reference to the current class instance :S
what can u replace this with?Quote:
Originally Posted by ComputerJy
I'm gonna unsubscribe from this thread for now.
I really think you should read a java introduction book