help
Author |
Message |
pooof
|
Posted: Mon Jun 09, 2008 6:58 pm Post subject: help |
|
|
Is it possible to use animation while asking for user input in Java? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
HellblazerX
|
Posted: Mon Jun 09, 2008 7:29 pm Post subject: RE:help |
|
|
What type of input are you looking for? Are you asking the user to type something in, or are you checking which keys they are pressing? |
|
|
|
|
|
pooof
|
Posted: Mon Jun 09, 2008 10:04 pm Post subject: Re: help |
|
|
I'm asking the user to type in something |
|
|
|
|
|
Dan
|
Posted: Tue Jun 10, 2008 12:51 am Post subject: RE:help |
|
|
Not if it is in the console, well at least you should not do it that way.
Ideally you should have some kind of GUI input field or be checking the key presses with a action listener. Since theses methods would be even driven you could easily be animating something at the same time. (This is assuming your animation is not in the console).
P.S. please use more detialed subjects then just help. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
Reality Check
|
Posted: Tue Jun 10, 2008 6:17 am Post subject: Re: help |
|
|
Use a nice textfield for input in your case. Look up the JTextField class. |
|
|
|
|
|
pooof
|
Posted: Tue Jun 10, 2008 5:23 pm Post subject: Re: help |
|
|
Thank you very much, I'll try what you guys suggested. And next time, I'll make more detailed subjects (sorry!) |
|
|
|
|
|
|
|