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 - Wizard loses focus
Summary: Wizard loses focus
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords: FOCUS, JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2003-06-13 13:56 UTC by Martin Ryzl
Modified: 2008-12-23 09:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test applicaton (6.96 KB, application/octet-stream)
2003-06-13 13:57 UTC, Martin Ryzl
Details

Note You need to log in before you can comment on or make changes to this bug.
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.