Yes, I see.
Alright then I'll change the GUI with JDialog. Thanks then! I marked it into solved for now.
Thanks for the help.
Type: Posts; User: noobies
Yes, I see.
Alright then I'll change the GUI with JDialog. Thanks then! I marked it into solved for now.
Thanks for the help.
Oh, I see...
So basically the dialog must wait the user.
So, How about if the time is over, the program will write down automatically the false answer, so the dialog will close and continue into...
So.. This is the problem:
There are 3 question in this game and every question is limited by time. If the user failed to to input the answer the first question before the time limit, the user must...
I solved the timer thing (the time limit is 3 second), I add this in Matimatika class:
public String getInput(String input) {
TimerTask task = new TimerTask() {
public...
No, the compiler not shown any error like that, I swear it :confused:
I paste the code above again and run it and not shown any errors.
Nope, no error has shown.
But, it's not what I want.
This is the output:
run:
1 <-- This is the timer's count
answer:
The time didn't increase until I repeatedly inputed the answer, what I want is the timer continually count and doesn't...
I already said the problem after the code section:
What I want is, if I enabled the scanner, the scanner will run along with the timer's count. When the count is at 3, the scanner will ask the...
I tried the java.util.Timer:
package timertest;
import java.util.*;
public class TimerTest {
I deleted the code because it solved
I don't ready to advance JFrame. I guess I have to use just JOptionPane for now plus timer of course. Hahaha
I make math game which the question is randomed and, the player must input the correct answer. I make the game with JOptionpane and it works well. Now, I want to add timer in my game, I want to add...