Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Keyboard Input and Live Text Animation Help
Keyboard Input and Live Text Animation Help [message #1750997] Tue, 03 January 2017 15:07
Chris Hulme is currently offline Chris HulmeFriend
Messages: 1
Registered: January 2017
Junior Member
I'm trying to learn Java and right now I'm creating a game where words fall from the top of the screen to the bottom and the player must type the words before they reach the bottom.

Currently I'm trying to get keyboard input for this. Ideally, as the player types it should highlight part of the word onscreen with what characters they've typed ie. if the word is "Hello", and I type "He", He will change colour to green and "llo" will remain the default colour.

I have no experience with keyboard inputs in Java but I've been recommended to use a Key Listener.

Any ideas on how to do this?
Previous Topic:Blocking Git commit when special tag found in code
Next Topic:Project build breaks from recursive "target/classes" directory
Goto Forum:

Current Time: Mon Jun 18 17:47:21 GMT 2018

Powered by FUDForum. Page generated in 0.02097 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top