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 17990 - Focus lost when closing nonmodal window on jdk1.4
Summary: Focus lost when closing nonmodal window on jdk1.4
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P3 blocker (vote)
Assignee: _ ttran
URL:
Keywords: A11Y
Depends on:
Blocks:
 
Reported: 2001-11-22 16:15 UTC by Jan Zajicek
Modified: 2008-12-23 00:00 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Zajicek 2001-11-22 16:15:47 UTC
dev#20011122
jdk1.4.0-rc-b86

Focus is lost after closing nonmodsal window. And cannot be reset by keyboard.
Note this seems to be issue on jdk1.4.0 only. Simple reproduction scenario
follows (use only keyboard for navigation):

1.Start ide in SDI.
2.open Tools, Options...
3.open help from Options
4.close Help (Alt+F4)
5.now note that focus is lost - you cannot navigate in options using Tab, arrows
or Ctrl+Tab
6.close Options (Alt+F4)7.focus is still lost - no focus in main window ;-(
Marking this as P2 from accessibility point of view on jdk1.4.0.
Comment 1 _ ttran 2001-11-22 20:24:03 UTC
I am not able to reproduce this problem at all with jdk 1.4 rc
promoted b87 on Linux.  How wide spread is this problem?  Happens only
to Options window?  Are you able to reproduce it 100% of the time?  If
the answer is yes even with b87 then raise prio back to P2.

> no focus in main window ;-(

you are in SDI mode.  Where should the focus go in the main window?

Comment 2 Marian Mirilovic 2001-11-24 19:02:58 UTC
After small investigation ,I found 2 (Merlin) issues:

1. after closing JDialog by Alt+F4 is focusOwner still last
focusOwner, it means that focusOwner is closed JDialog ( which isn't
no more visible) or last component from closed JDialog.

Typical example of described behaviour is this issue, if you close
Help window by Alt+F4 , focus owner is still window (Help) which is
closed - not button [Help] as you (and we) expect { no FocusLost event
come, only WindowClosed come}

This seems like works on Windows/2000 fine. After Window_Closed come
FocusLost and Focus_Gained on JButton which invoke JDialog.


2. sometimes ( 1/5 ) after closing JDialog which was opened from
JFrame, AWT Events come in different orders and repeatedly focused
component on JFrame isn't JButton which invoke JDialog but JFrame own.
Than you must hit Tab to get focus on first component = JFrame
sometimes doesn't delegate focus to first component{FocusGained come
from JFrame not JButton).

This seems like works on Windows 2000 too.

Comment 3 _ ttran 2001-11-25 12:59:09 UTC
Marian, I have the feeling that you're saying this is a bug in JDK 1.4
beta.  Correct?
Comment 4 Marian Mirilovic 2001-11-26 09:29:22 UTC
Yes, it is. I have filed new issue aggainst java/swing_classes into
butraq (P2/S3)
http://dtsw.eng.sun.com/perl/bt_showbug?bugid=4464611

This issue closed as WONTFIX.
Comment 5 Marian Mirilovic 2001-11-26 09:32:06 UTC
Oops, I am sorry, correct issue number is :

http://dtsw.eng.sun.com/cgi-bin/bugtraq_showbug?bugid=4531076
Comment 6 Quality Engineering 2003-07-01 16:03:42 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 7 Quality Engineering 2003-07-01 16:20:17 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.