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

Username:   Password: 
 RegisterRegister   
 Connect Four Helped Need BADLY
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
GoVikingsGo




PostPosted: Mon Jan 16, 2006 9:55 am   Post subject: Connect Four Helped Need BADLY

Back again, um I need to use the arrow keys to move the circle thingy and to drop it into the slot. Does anyone know how to use the arrow keys? I know i have to use a key pressed or ley typed event but I dont know the syntax of these commands. All help would be appreciated. By the way I am working in Console! Thanks alot
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Mon Jan 16, 2006 1:26 pm   Post subject: (No subject)

Google "how to use keylistener site:java.sun.com".
Dan




PostPosted: Mon Jan 16, 2006 2:59 pm   Post subject: (No subject)

If you are working only in the console then the arrow keys maynot be your best bet. I whould sugested asking the user to enter an number for the col to drop it in. It whould be easyer to code and to use. I am not shure how a keylistener whould work for the console since you ushely can not use the console like you whould turing where u can have graficks and updating of the screen. Unless of corse you are using some crazy API like ready to progame then things just get more complicated and harder to help with.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
GoVikingsGo




PostPosted: Mon Jan 16, 2006 4:03 pm   Post subject: (No subject)

Quote:

Google "how to use keylistener site:java.sun.com".


You dont know or wanna know how many times i read this but I am working in CONSOLE. Thx Anyways

Quote:

If you are working only in the console then the arrow keys maynot be your best bet. I whould sugested asking the user to enter an number for the col to drop it in. It whould be easyer to code and to use. I am not shure how a keylistener whould work for the console since you ushely can not use the console like you whould turing where u can have graficks and updating of the screen. Unless of corse you are using some crazy API like ready to progame then things just get more complicated and harder to help with.




U know i might just do that it would make it ten times easier for me. By the way I am using Ready to Program. Thx both of u
wtd




PostPosted: Mon Jan 16, 2006 7:38 pm   Post subject: (No subject)

GoVikingsGo wrote:
Quote:

Google "how to use keylistener site:java.sun.com".


You dont know or wanna know how many times i read this but I am working in CONSOLE. Thx Anyways

Quote:

If you are working only in the console then the arrow keys maynot be your best bet. I whould sugested asking the user to enter an number for the col to drop it in. It whould be easyer to code and to use. I am not shure how a keylistener whould work for the console since you ushely can not use the console like you whould turing where u can have graficks and updating of the screen. Unless of corse you are using some crazy API like ready to progame then things just get more complicated and harder to help with.




U know i might just do that it would make it ten times easier for me. By the way I am using Ready to Program. Thx both of u


You can use all of standard Java 1.4.2 from within Ready To Program.
Dan




PostPosted: Mon Jan 16, 2006 9:12 pm   Post subject: (No subject)

If you are using Ready To Program it is a hole difrent sotry. Since if u are using there API the console is not realy the console and there API has lots of comands that are only for there "console". Unfonty i do not know the RTP API nor do i have a copy of it (please do not send one as this whould be in vaition of copy right law).

But WTD is right, the keylistener should work fine in RTP. If you could post some of your atmeptes at geting it to work we whould be able to help you more.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Hikaru79




PostPosted: Mon Jan 16, 2006 9:20 pm   Post subject: (No subject)

HSA Console has its own wonky API, for everything from graphics to ActionEvents. Nobody here knows it, or will learn it. (Not because we're stupid -- because HSA Console is stupid). So you can either a) Not use Console, but rather Swing or JApplet or b) Use the API ref at the back of the yellow Java textbook that Holt should have given you.
GoVikingsGo




PostPosted: Tue Jan 17, 2006 8:57 am   Post subject: (No subject)

woooosh right over my head

Quote:

Use the API ref at the back of the yellow Java textbook that Holt should have given you.


I DONT HAVE THIS

but what is API?


I am going to use the number anyways to input coordinates thanks...[/quote]
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Tue Jan 17, 2006 12:12 pm   Post subject: (No subject)

Application Programming Interface.
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  [ 9 Posts ]
Jump to:   


Style:  
Search: