|
Thanks for your response.
Although I didn't use invokeLater as you suggested, your idea jogged my mind to try something.
I was calling requestFocusInWindow() every time the mouse was pressed, moved or dragged over the control.
I created this control in NetBeans as a JPanel Form. I created a keyPressed event within the form.
Here's my new feature: I'm counting the number of accepted and denied requestFocusInWindow() calls.
It turns out the call usually is denied, but it sometimes is accepted, enough to make the keyPress event work.
So, I'm all better now. Thanks. -Scott
|