Key Event Problem

J

jamurphy

I am having a problem with a JFrame recognizing a key event. Inside of
the JFrame is a JScrollPane with a JTextArea inside of it. My problem
is when all of the text fits within the frame (no scroll bar present),
the key event is recognized, but if the scroll bar is needed, the
event is not recognized. The frame is in focus, but just doesn't
respond. Does the JScrollPane absorb the event? Any ideas about a
workaround?
 

Ask a Question

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top