B
Bumsys
How add KeyListener to JFrame?
Simply I want that when I press F5 the content of JFrame refresh.
Simply I want that when I press F5 the content of JFrame refresh.
I add JPanel to JFrame with setContentPane(panel) and KeyListener does
not work. If I do not write setContentPane(panel) then KeyListener
work normally. What is the reason?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.