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 23729 - MDI: desktop lost windows
Summary: MDI: desktop lost windows
Status: CLOSED DUPLICATE of bug 22091
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-19 02:10 UTC by andrew
Modified: 2008-12-23 09:53 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Diff for branch release33 (2.12 KB, patch)
2002-05-20 17:28 UTC, mslama
Details | Diff
Patch for branch release33 (57.14 KB, application/octet-stream)
2002-05-20 18:12 UTC, mslama
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andrew 2002-05-19 02:10:30 UTC
Current branch33 (upcoming 3.3.2), jdk 1.4, w2k

MDI: Explorer attached left, Properties attached right,
Outut window attached bottom, Source editor maximized
on MDI desktop. Dominant-order: Output window,
Explorer.

After restarting the IDE Source editor frame may be:
- filling all desktop (as expected), or
- "unmaximized" but visible, or
- invisible.

At last case there are no any scroll bars to find the
editor frame. How to find: MainMenu - View - Source editor,
Main Menu - Windows - Attach.. top, then detach and
maximize again.

I have not found any 100% reproducable schema, but
the window loss takes place very often (more than 75%
cases). I have noticed the editor.wsmode sometimes
contains string with negative heigth value like this:

<bounds x="0" y="0" width="905" height="-614" />
<frame type="internal" state="normal" />

and never state="maximized".

All this is very annoying, so I vote for P1.

Thanks,
Andrew
Comment 1 Jan Zajicek 2002-05-20 14:26:53 UTC
Here are steps to reproduce (3.3.2 - release33 branch -> Orion):

1. start ide in MDI mode and with fresh userdir
2. open some source file in the editor (e.g. txt file)
3. maximize the editor
4. restart ide
5. restore the editor window -> now the editor disappears

The workaround is to select the hidden editor (ctrl+3) and undock it
using window menu.

Also note that this seems to be a regression because I am unable to
reproduce this in 3.3.1.

Decreasing prio to P2, however this is still a showstopper, beacause
of complicated workaround.

Moving to window system. Also ccing Dafe - please help with the
evaluation, thanks.
Comment 2 mslama 2002-05-20 17:27:18 UTC
It was already fixed in main trunk as issue #22091. I will attach diff
for branch release33.


*** This issue has been marked as a duplicate of 22091 ***
Comment 3 mslama 2002-05-20 17:28:08 UTC
Created attachment 5862 [details]
Diff for branch release33
Comment 4 mslama 2002-05-20 17:31:20 UTC
Problem was that ModeImpl.setBounds() or ModeImpl.setRelativeBounds()
was called using invokeLater() even if code was run in AWT thread. In
such case it should not be replanned but called directly.
Comment 5 mslama 2002-05-20 18:12:28 UTC
Created attachment 5863 [details]
Patch for branch release33
Comment 6 Patrick Keegan 2002-05-21 11:15:11 UTC
Marking as a release note item. Any chance the patch will 
be accepted for 3.3.2/Orion?
Comment 7 andrew 2002-05-21 16:42:42 UTC
iwno> Created an attachment (id=5863)
iwno> Patch for branch release33

The editor frame is always visible now. But "maximized" 
state
is not remembered. After restarting, the frame has slightly
another size and must be maximized again.

In my MDI case there are left, right and bottom attached
frames around the editor frame.

I suggest to reopen the issue.

Andrew 
Comment 8 mslama 2002-05-21 17:02:17 UTC
It is strange. 
1.I do not see such behaviour. (I use Linux RH 7.1, KDE 2.1.1). Source
Editor frame is kept maximized and frame size seems ok after restart.
I just left Source Editor maximized and restarted IDE a few times.
2.I think it is different issue. If you are able to reproduce it
please file new issue for it.
Comment 9 mslama 2002-05-21 17:38:27 UTC
Fix was integrated to branch orion_fcs.

Modified:
src/org/netbeans/core/windows/layers ModeData.java r.1.57.2.11.4.2
Comment 10 Jan Zajicek 2002-05-21 18:02:32 UTC
 Andrew any reproducible scenario with fresh userdir? Also please file
this as another issue. Thanks.
Comment 11 mslama 2002-05-21 18:10:32 UTC
Fix was integrated to branch release33.

Modified:
src/org/netbeans/core/windows/layers ModeData.java r.1.57.2.13
Comment 12 Marian Mirilovic 2002-05-22 11:39:57 UTC
[orion](020521-rc5), [jdk1.4](fcs)

It seems like it is fixed in the RC5 build.
verified in [orion](rc5).

I find reproducible scenarion for restored maximized windows after
restart, see issue 23836.
Comment 13 Patrick Keegan 2002-05-23 16:52:31 UTC
removing RELNOTE keyword
Comment 14 Quality Engineering 2003-07-01 16:05:56 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 15 Quality Engineering 2003-07-01 16:50:08 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.