Search:

Type: Posts; User: noobies

Page 1 of 2 1 2

Search: Search took 0.48 seconds.

  1. Replies
    21
    Views
    70

    [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
    70

    [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
    70

    [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
    70

    [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
    70

    [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
    70

    [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
    70

    [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
    70

    [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
    70

    [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
    70

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

    I deleted the code because it solved
  11. Replies
    21
    Views
    70

    [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
    8
    Views
    29

    [SOLVED] Re: [HELP] MONSTER DUPLICATE ATTACK

    Hey Greg! Now I understand the stack/queue and ArrayList too :)
    And if you don't mind please guide me again at this thread. Thanks!...
  13. Replies
    21
    Views
    70

    [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...
  14. Replies
    8
    Views
    29

    [SOLVED] Re: [HELP] MONSTER DUPLICATE ATTACK

    I like the concept of 'adjustable' array, you said. I'll try to figure it out. And I'll study about ArrayList after it.
    Yes, now I understand Stack, because I use it for my college project.
    I'll...
  15. Replies
    8
    Views
    29

    [SOLVED] Re: [HELP] MONSTER DUPLICATE ATTACK

    deleted
  16. Replies
    8
    Views
    29

    [SOLVED] Re: [HELP] MONSTER DUPLICATE ATTACK

    I deleted my code, for safety, hahaha
  17. [SOLVED] Re: I want to make simple Tic Tac Toe game, anyone can guide me?

    Yup, in that forum already have the tutorial. So, it solved. Thanks for your responses!

    --- Update ---

    Hey greg! This is the code from my previous project, hope you can help me...
  18. Re: [HELP] Trouble To Understanding The Algorithm of my second project (MONSTER DUPLICATE ATTACK :D)

    This the code:
    http://www.javaprogrammingforums.com/whats-wrong-my-code/37296-%5Bhelp%5D-monster-duplicate-attack.html#post146524
  19. Replies
    8
    Views
    29

    [SOLVED] [HELP] MONSTER DUPLICATE ATTACK

    I deleted my code, for safety, hahaha
  20. [SOLVED] I want to make simple Tic Tac Toe game, anyone can guide me?

    This is for my school project. My instructor told me to make game from java but based on GUI. And I thought about it, I want to make Tic Tac Toe (X-O) game.
    Any one in here can guide me to complete...
  21. Re: [HELP] Trouble To Understanding The Algorithm of my second project (MONSTER DUPLICATE ATTACK :D)

    Yup, I will never using parallel arrays :p
    My understanding is until searching. But, if I really stuck for this project, I'll skip it for now.
    When I figure it out and make some codes, I'll post...
  22. Re: [HELP] Trouble To Understanding The Algorithm of my second project (MONSTER DUPLICATE ATTACK :D)

    This project is from my book, the old one actually that my brother has years ago. It is said this is the project for the concepts of java around if statement until array.
    Actually I can simply go on...
  23. Re: [HELP] Trouble To Understanding The Algorithm of my second project (MONSTER DUPLICATE ATTACK :D)

    Yes, I don't understand queue yet. This is for my personal project. The reason I created monster() method is I tried to describe your explanation about creating Monster class, and I tried to write it...
  24. Re: [HELP] Trouble To Understanding The Algorithm of my second project (MONSTER DUPLICATE ATTACK :D)

    Okay I'm confused now, but I try to make the code. Are you mean like this?


    package projek3;

    import java.util.Scanner;

    /**
    *
    * @author Hengky
  25. [SOLVED] Re: [HELP] [HELP] Trouble To Understanding The Algorithm of my project

    Hey Thanks!! I Solved this because your help. :)
    I have another project, I hope you can guide me to complete the project like what you did in my thread here :)
    This is the thread:...
Results 1 to 25 of 36
Page 1 of 2 1 2