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 86994 - Some dialogs invoked from diagram can move diagrams behind main window
Summary: Some dialogs invoked from diagram can move diagrams behind main window
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-12 12:02 UTC by Sergey Petrov
Modified: 2007-10-01 19:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
initial state (59.41 KB, image/png)
2006-10-12 12:56 UTC, Sergey Petrov
Details
after layout invocation (50.06 KB, image/png)
2006-10-12 12:56 UTC, Sergey Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2006-10-12 12:02:59 UTC
reproducible with 061011_8

some dialogs related to work with diagrams seems to have main window as parent,
some "good" dialogs have diagram window as parent
stepswhere it looks worst:
1. turn on sdi mode
2. prepare screen as shown on attached screenshot (main window should be a bit
larger than diagram editor)
3. press export as image from toolbar
export as image dialog appears above diagram editor and blocks it and main
window (it's ok)
4. try 'Zoom...' or 'Properties' or 'Layout|properties' from diagram context menu
result good
5. press any layout button
editor goes behind main window, It may be hard to bring it back (and impossible
until layoput dialog opened)

I can set always on top for editor window with my graphics driver and if I do
that I'll get somethink like hangs after step 5 because layout dialog will be
behind editor window (ESC to closee dialog works fine).

The same problem exists for 'Associate With','Print Preview','Apply Desing Pattern'
Comment 1 Sergey Petrov 2006-10-12 12:56:08 UTC
Created attachment 35133 [details]
initial state
Comment 2 Sergey Petrov 2006-10-12 12:56:46 UTC
Created attachment 35134 [details]
after layout invocation
Comment 3 Yang Su 2006-12-05 01:33:33 UTC
The root cause is that JCenterDialog (super class for those dialogs that caused
the issue) uses IDE main window as the parent for the popup dialog, instead,it
should take the parent of the activated top component.
Comment 4 Yang Su 2007-03-07 22:34:34 UTC
sdi mode is not supported in NB6.0, can't reproduce it with trunk build in order
to test the fix.
Comment 5 Yang Su 2007-03-08 01:01:46 UTC
Correction. UI mode option was still available in NB 6.0 02/17/07 build. 

checked in to trunk and tested on NB5.5 as well.
Comment 6 Peter Lam 2007-10-01 19:25:52 UTC
SDI mode has been removed in NB6 M8 so this issue can't be verified from its original scanerios. Verifying other dialogs
working properly.