I have a dialog that comes up to the user (JDialog). In this dialog is a JPanel containing JButtons, and a JScrollPane with a JTextArea. When the dialog first comes up the button has focus, but if the user types page up or page down I want to transfer that key stroke to my JTextArea. Can this be done? I do have a key listener on my button, but I don't know if I can transfer that key stroke or if that is even the right approach to my problem.
That would be a great idea, I did not know about that functionality. But unfortunately I have a JScrollPane inside of my RootPane, if I give focus to my text field the scroll pane will eat up the activation event. Is there any way around that?