posted 18 years ago
Hi, there:
We upgraded our GUI application from jdk1.3.2 to jdk 1.4.2. Some codes to call requestFocus() that worked fine in jdk1.3.2 seems not work with 1.4.2.
I have a complicated function, at the end of function I called ComponentA.requestFocus() which I want to set focus to ComponentA. However in jdk1.4.2 it always set the focus to the first component in first panel.
The more strange issue is that, if I put a breakpoint at the end of the function, run it in debug mode, after stop at that break point, I just resumed the application, everything works fine, the focus was set to componentA.
So, is that some asynchronize issue in jdk1.4 focus api? how can I deal with that problem in 1.4?
Really appreciated if any hints, suggestions on that issue.
Thanks a lot in advance
David