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 249862

Summary: DialogDisplayer dialog freezes when invoked from TopComponent close option
Product: platform Reporter: tusharvjoshi <tusharvjoshi>
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED WORKSFORME    
Severity: normal CC: ovrabec
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Example of basic NetBeans app with issue demonstrated
The screenshot of the close menu option used for this issue

Description tusharvjoshi 2015-01-16 13:29:42 UTC
Created attachment 151548 [details]
Example of basic NetBeans app with issue demonstrated

How to reproduce:
1. Create a basic NetBeans Application
2. Create a Top Component for editor area
3. Override the componentClosed method and show a Dialog using Dialog API, ( NotifyDescriptor, DialogDisplayer )
4. Use the close option available in the right menu of topComponents for closing the top component
5. The application freezes and buttons become unresponsive
Comment 1 tusharvjoshi 2015-01-16 13:30:59 UTC
Created attachment 151549 [details]
The screenshot of the close menu option used for this issue

The close option from the right menu in screenshot
Comment 2 tusharvjoshi 2015-01-16 13:35:15 UTC
My current environment:

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Java: 1.7.0_65; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_65-b19
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\tushar_joshi\AppData\Roaming\NetBeans\8.0
Cache directory: C:\Users\tushar_joshi\AppData\Local\NetBeans\Cache\8.0
Comment 3 Ondrej Vrabec 2015-07-15 07:54:25 UTC
Seems to work fine, i don't see any freeze. Please attach a thread dump when the UI is stuck, thanks.