|
-
Dec 17th, 2008, 02:45 PM
#1
Thread Starter
Addicted Member
adding a timer?
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
-
Dec 18th, 2008, 02:06 AM
#2
Re: adding a timer?
you can use javax.swing.Timer or java.util.Timer
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Dec 18th, 2008, 12:19 PM
#3
Thread Starter
Addicted Member
Re: adding a timer?
 Originally Posted by ComputerJy
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 it
-
Dec 18th, 2008, 02:34 PM
#4
Re: adding a timer?
I think it'd be a better idea to check out what sun has to say about the swing timers
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Dec 18th, 2008, 07:44 PM
#5
Thread Starter
Addicted Member
Re: adding a timer?
 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 but
Code:
timer = new Timer(speed, this);
what is this? and i dont mean this line of code but the word "this" after speed
-
Dec 18th, 2008, 08:03 PM
#6
Re: adding a timer?
That section is clearly taken from this file
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Dec 18th, 2008, 08:21 PM
#7
Thread Starter
Addicted Member
Re: adding a timer?
 Originally Posted by ComputerJy
that still doesnt tell me what
Code:
timer = new Timer(speed, this);
that this mean
-
Dec 18th, 2008, 08:28 PM
#8
Re: adding a timer?
it's a reference to the current class instance :S
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Dec 18th, 2008, 10:43 PM
#9
Thread Starter
Addicted Member
Re: adding a timer?
 Originally Posted by ComputerJy
it's a reference to the current class instance :S
what can u replace this with?
-
Dec 19th, 2008, 07:38 AM
#10
Re: adding a timer?
I'm gonna unsubscribe from this thread for now.
I really think you should read a java introduction book
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|