This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 34380

Summary: Wizard loses focus
Product: platform Reporter: Martin Ryzl <mryzl>
Component: Window SystemAssignee: mslama <mslama>
Status: VERIFIED WONTFIX    
Severity: blocker Keywords: FOCUS, JDK_SPECIFIC
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Attachments: test applicaton

Description Martin Ryzl 2003-06-13 13:56:50 UTC
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
works well.

I have attached a listener to AWT and watched
focus events.
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
Comment 1 Martin Ryzl 2003-06-13 13:57:45 UTC
Created attachment 10681 [details]
test applicaton
Comment 2 mslama 2003-07-03 14:14:16 UTC
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(). 
Comment 3 Marian Mirilovic 2003-07-28 16:44:44 UTC
Marek is right - verifying.