Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 help
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
pooof




PostPosted: 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
Sponsor
sponsor
HellblazerX




PostPosted: 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




PostPosted: Mon Jun 09, 2008 10:04 pm   Post subject: Re: help

I'm asking the user to type in something
Dan




PostPosted: 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




PostPosted: 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




PostPosted: 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!)
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: