Computer Science Canada

help

Author:  pooof [ Mon Jun 09, 2008 6:58 pm ]
Post subject:  help

Is it possible to use animation while asking for user input in Java?

Author:  HellblazerX [ 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?

Author:  pooof [ Mon Jun 09, 2008 10:04 pm ]
Post subject:  Re: help

I'm asking the user to type in something

Author:  Dan [ 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.

Author:  Reality Check [ 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.

Author:  pooof [ 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!)


: