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 21613 - IDE/System freeze when during DnD modal dialog is shown.
Summary: IDE/System freeze when during DnD modal dialog is shown.
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords:
Depends on:
Blocks: 21610
  Show dependency tree
 
Reported: 2002-03-15 08:49 UTC by Peter Zavadsky
Modified: 2008-12-23 09:34 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Zavadsky 2002-03-15 08:49:33 UTC
This is the most serious problem up to now. 
It is described in bugtraq #4645584.

This could happen in IDE whe such dialog is scheduled behind the scenes, on one
hand its very seldom, on the other hand it has terrible consequences.

When the modal dialog is shown during DnD, there is some problem, DnD is still
in progress but can't be finished, it still prevent event to be propagated to
the dialog -> it is the jdk bug (see the number above).
 Only way to recover is to close the dialog by click on "x" button. But in case
the dialog has operation DO_NOTHING_ON_CLOSE set, even this last resort is gone.

Since dialogs created by NbPresenters have the DO_NOTHING_ON_CLOSE option set as
default there is necessary to make a some workaround for the situation.

Listen on possibly opened such modal dialogs during the DnD and if the case
occures, unset the DO_NOTHING_ON_CLOSE option, thus allowin user to close it and
recover.
Comment 1 Peter Zavadsky 2002-04-11 13:35:15 UTC
Current only workaround is when the dialog is going to be shown via
NbPresenter, and the window DnD is in progress already, it's changed
to modeless one.

Note:
There alway remain the problem if somebody else will create the modal
dialog and show it while there is DnD in progress.
Comment 2 Marian Mirilovic 2004-03-01 08:52:41 UTC
issue doesn't apply to new window system - verified