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
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!...
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...
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...
deleted
I deleted my code, for safety, hahaha
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...
This the code:
http://www.javaprogrammingforums.com/whats-wrong-my-code/37296-%5Bhelp%5D-monster-duplicate-attack.html#post146524
I deleted my code, for safety, hahaha
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...
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...
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...
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...
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
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:...