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.
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.
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?
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.
Marian, I have the feeling that you're saying this is a bug in JDK 1.4 beta. Correct?
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.
Oops, I am sorry, correct issue number is : http://dtsw.eng.sun.com/cgi-bin/bugtraq_showbug?bugid=4531076
Resolved for 3.4.x or earlier, no new info since then -> verified.
Resolved for 3.4.x or earlier, no new info since then -> closing.