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 18087 - MDI mode is very soon broken (in 1.4)
Summary: MDI mode is very soon broken (in 1.4)
Status: CLOSED FIXED
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:
: 18323 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-11-26 15:45 UTC by Jiri Mzourek
Modified: 2008-12-23 09:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
example of broken MDI (93.45 KB, image/jpeg)
2001-11-26 15:47 UTC, Jiri Mzourek
Details
Yes, but I'm not sure if it is related to this problem. Attached ide.log (W2k) (5.15 KB, text/plain)
2001-11-26 16:23 UTC, Jiri Mzourek
Details
patch18087.jar (15.05 KB, application/octet-stream)
2001-11-28 17:29 UTC, mslama
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Mzourek 2001-11-26 15:45:21 UTC
How to reproduce:
1) Run IDE in MDI mode (I've tried it with new userdir)
2) Dock "properties" bottom of "explorer"
3) Attach "source editor" top
4) Attach "output window" bottom

Start to "play" (change windows size, move, etc.). After a while, MDI will be 
unusable in all worspaces. See attachment -- it's better than word description.
I've tried it on JDK1.4rc and W2k and in NBbeta4 and in latest build too.
Comment 1 Jiri Mzourek 2001-11-26 15:47:23 UTC
Created attachment 3572 [details]
example of broken MDI
Comment 2 Jan Zajicek 2001-11-26 15:54:11 UTC
I can reproduce this on Solaris too:

dev#200111230645
jdk1.4.0-rc1-b87.
Comment 3 _ ttran 2001-11-26 15:58:13 UTC
any bad things in ide.log?
Comment 4 Jiri Mzourek 2001-11-26 16:23:21 UTC
Created attachment 3574 [details]
Yes, but I'm not sure if it is related to this problem. Attached ide.log (W2k)
Comment 5 Jan Zajicek 2001-11-26 16:40:35 UTC
No exceptions in ide.log by me.
Comment 6 mslama 2001-11-27 09:39:20 UTC
I investigate it.
Comment 7 mslama 2001-11-28 17:27:33 UTC
Please test following patch.
Comment 8 mslama 2001-11-28 17:29:22 UTC
Created attachment 3611 [details]
patch18087.jar
Comment 9 Jan Zajicek 2001-11-29 09:46:12 UTC
The patch seems to solve the problem. Tested on build #200111280300.
Comment 10 mslama 2001-11-29 10:27:08 UTC
I found the root cause if weird: Call of Rectangle.setSize() does not
work correctly in all cases in PerimeterLayout.flip(). Workaround is
to rearrange code. Now I store values in local variables before call
of setSize() but I found that also other changes eliminate this behaviour.

Described broken MDI is result of this incorrect behaviour.

I also filed bug #4532741 to JDK 1.4.0-b87 to Bugtraq.

Fixed in release33 branch.
Comment 11 Jan Zajicek 2001-11-29 10:32:22 UTC
Vote for putting this into 3.3.0 too.
Comment 12 mslama 2001-12-03 12:48:31 UTC
Fix is merged to release330 branch.
Comment 13 Jan Zajicek 2001-12-04 11:25:59 UTC
verified in both release33 and release330 builds
Comment 14 Jan Zajicek 2001-12-04 13:31:40 UTC
*** Issue 18323 has been marked as a duplicate of this issue. ***
Comment 15 Quality Engineering 2003-07-01 16:42:58 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.