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 14534

Summary: JavaHelp doesn't respond when called from nested dialog
Product: platform Reporter: Patrick Keegan <pkeegan>
Component: Help SystemAssignee: Jesse Glick <jglick>
Status: CLOSED FIXED    
Severity: blocker CC: issues, johnjullion
Priority: P4    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 19620    
Bug Blocks:    

Description Patrick Keegan 2001-08-17 14:39:35 UTC
When I click the Help button on one certain dialog box that originated
in another dialog box, it is impossible to give the JavaHelp window focus  
(can't select it, can't scroll up or down, can't change topics, etc.) This only
happens if the Help window was already open.

To reproduce:

- Open Help on any topic. 
- Choose Customize from contextual menu of a
mounted generic VCS filesystem, then click the Advanced tab and Edit
Commands. 
-In the Command Editor dialog, click Help. 

JavaHelp should get focus, but it doesn't. Apparently there is a problem 
reparenting JavaHelp through two levels of modals.
Comment 1 Jan Zajicek 2001-08-20 11:43:25 UTC
Assigning.
Comment 2 Jesse Glick 2001-08-21 15:40:19 UTC
It is probably true that nested dialogs are not handled well. Strange
however because according to sources, the advanced commands dialog is
opened "politely" using TopManager.createDialog.
Comment 3 Jesse Glick 2001-11-21 11:22:03 UTC
I just tried in [dev nov 20] and it worked fine. Maybe there was some
transient problem, or maybe some dialogs were reimplemented, I don't
know.
Comment 4 Patrick Keegan 2001-11-22 15:00:36 UTC
It still doesn't work for me. After pressing Help in the customizer, 
the Help window correctly reposition correctly, the correct topic 
appears in the pain, and the Help window *appears* to gain focus. But 
it is impossible to do anything in the Help window, such as scroll or 
pick another topic.
Comment 5 Jesse Glick 2001-11-22 17:16:27 UTC
I see now. If you do *not* originally have help open, but open the
customizer and then the inner dialog and press Help, it is fine. The
problem only occurs if help was already open and you open the first
dialog--the help is reparented to the first dialog correctly--but when
the second dialog is opened, it is not reparented again as it probably
needs to be. This is pretty obscure but a bug nonetheless.
Comment 6 Jan Chalupa 2001-11-27 11:49:04 UTC
Target milestone -> 3.3.1.
Comment 7 Jan Chalupa 2001-11-27 11:52:30 UTC
Target milestone -> 3.3.1.
Comment 8 Jan Chalupa 2002-01-11 14:00:12 UTC
Target milestone -> 3.4
Comment 9 Jan Chalupa 2002-01-11 14:04:07 UTC
Target milestone -> 3.4
Comment 10 Jan Chalupa 2002-01-11 14:05:43 UTC
Target milestone -> 3.4
Comment 11 Jan Chalupa 2002-01-11 14:09:45 UTC
Target milestone -> 3.4
Comment 12 Jesse Glick 2002-01-16 16:46:49 UTC
In the javahelp_api_jan_2002 branch I have a fix for this (rewrote
modal dialog handling code).
Comment 13 Jesse Glick 2002-01-22 13:49:59 UTC
Fixed, see #19620.
Comment 14 Marian Mirilovic 2002-09-10 10:41:25 UTC
verified in [nb_dev](20020904)
Comment 15 Quality Engineering 2003-07-01 16:47:36 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.