Ask coding questions

← Back to all posts
JTextField not displaying anything using the Shift key
maryjanepack (0)

Capital letters will not display as caps - you have to press caps lock to get a cap. For other non-letters, like parentheses, you just get the non-shift character. I cannot figure out any methods to call that will fix this apparent bug in JTextField. Strangely, on a Mac, the non-shift characters work, but the capital letters don't - you still have to use caps lock.

Commentshotnewtop
Coder100 (12524)

That's a bug, repl.it still can't handle the shift key for some reason.

Report this to bugs. Thanks!