Unzip attached zip file, compile it and run
wizard.MyWizardIterator. In the first panel, type
in a valid file name and press Enter. Focus is
lost in the second panel. If you press Alt-B (Back
shortcut) menu Build is expanded. Note that the
wizard is modal dialog and you should not be able
to get to another dialog without closing wizard first.
If you click on Next in the first panel everything
I have attached a listener to AWT and watched
It seems that after I press Enter, ... button
receives focus and when second panel is displayed,
... button is no more visible.
If ... button is removed, Back button receives
focus and because Back, Next, etc. buttons are
reused it has focus in the second panel, which is
also wrong behaviour.
tested on W2k SP3, jdk 1.4.1_03-b02, NetBeans 3.5
Created attachment 10681 [details]
I checked on Linux with JDK 1.4.1 and JDK 1.4.2. It behaves as
described on JDK 1.4.1: Even call of requestFocus() on any component
in addNotify() after super.addNotify() does not help. Though it works
correctly on JDK 1.4.2. We found workaround for JDK 1.4.1: Call
requestFocus() from addNotify() using invokeLater().
Marek is right - verifying.