posted 8 years ago
Hello, I'm primarily a math teacher, but have recently started teaching AP Computer Science. I am very much a rookie when it comes to anything beyond the content of the Exam. Now that the exam is over, I'm trying to build some simple GUIs and simple games with the kids. I developed the classes below (along with a bunch more stuff) which work perfectly on my computer, but the Key Typing feature is not working on all my students computers (which is a hodge-podge of laptops). I've tried keyCodes instead of the Character method and that makes no difference. I've tried the code in both keyPressed and keyTyped as well.
I've read that Key Bindings is almost always a better strategy, but it seems quite a bit more confusing. It would take me a good while to sort it all out, so I can only imagine how most of my students would react to it. KeyListener seems much more manageable, but I cannot figure out why my current code won't work on everyone's computer. I'm sure I'm doing a variety of things that are not very sensible, but I'm mostly concerned with just getting it to function on everyone's computer. I'm open to all suggestions, but please try to keep in mind I am very very much a rookie to it all. Thanks for any help.