|
From: Alan M. <yee...@ya...> - 2001-07-20 23:12:35
|
Slava, As I said in my reply to Adolfo, the GrabKeyDialog didn't work when I compiled and ran 3.2pre6 under jdk1.4. There were no entries in the log file, meaning that the dialog was not even receiving the KeyEvents. I tried intercepting the events in the ContentPane and the GlassPane, with the same (lack of) result. Finally, I subclassed JTextField and put your processKeyEvent() method there. The attached file works for me under jdk1.3 and 1.4. I don't think this is the intended behavior; the new focus subsystem is seriously buggy. But this approach should still work even after they get it working (he said with a smugness born of naivete). --Alan |