Search:

Type: Posts; User: noobies

Search: Search took 0.07 seconds.

  1. Replies
    21
    Views
    1,565

    [SOLVED] Re: About swing Timer in my Math game

    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.
  2. Replies
    21
    Views
    1,565

    [SOLVED] Re: About swing Timer in my Math game

    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...
  3. Replies
    21
    Views
    1,565

    [SOLVED] Re: About swing Timer in my Math game

    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...
  4. Replies
    21
    Views
    1,565

    [SOLVED] Re: About swing Timer in my Math game

    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...
  5. Replies
    21
    Views
    1,565

    [SOLVED] Re: About swing Timer in my Math game

    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.
  6. Replies
    21
    Views
    1,565

    [SOLVED] Re: About swing Timer in my Math game

    Nope, no error has shown.
    But, it's not what I want.
  7. Replies
    21
    Views
    1,565

    [SOLVED] Re: About swing Timer in my Math game

    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...
  8. Replies
    21
    Views
    1,565

    [SOLVED] Re: About swing Timer in my Math game

    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...
  9. Replies
    21
    Views
    1,565

    [SOLVED] Re: About swing Timer in my Math game

    I tried the java.util.Timer:




    package timertest;

    import java.util.*;

    public class TimerTest {
  10. Replies
    21
    Views
    1,565

    [SOLVED] Re: About swing Timer in my Math game

    I deleted the code because it solved
  11. Replies
    21
    Views
    1,565

    [SOLVED] Re: About swing Timer in my Math game

    I don't ready to advance JFrame. I guess I have to use just JOptionPane for now plus timer of course. Hahaha
  12. Replies
    21
    Views
    1,565

    [SOLVED] About swing Timer in my Math game

    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...
Results 1 to 12 of 12