This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I am trying to write a program that takes the key you type and changes it to something else. i cannot figure out what the key codes are for the letter keys. iny help will be great.
here are the keys i need to change:
edit: i found the way to do it for the upper case letters but i cant find it for the lower case letters. when i do
it cannot find VK_a but when i use VK_A and use A instead of a it works. i need to be able to do it for the lowercase versions
also for some reason when i use the "/" in a string it says inproper close statement or something to that effect
Duct tape is like the Force. It has a dark side, a light side, and it binds the whole universe together.
Cody Long wrote:Yes, i tried Google. couldn't find anything that a semi-intermediate java coder could understand.
Same with the swing tutorial. I couldn't under stand it.
IMO the Sun Tutorial is not the easiest thing to decipher sometimes. Often assumptions are made that the student understands the background material.
If you do decide to continue with the DocumentFilter angle, here is an example I found that maps lower case letters to uppercase letters that might be a useful complement to the Sun Tutorial. I haven't tried the example myself, so I can't speak directly as to its applicability.