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 32526 - Mistaken WS's behaviour if opening form file after IDE's restart
Summary: Mistaken WS's behaviour if opening form file after IDE's restart
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-01 08:43 UTC by Marian Mirilovic
Modified: 2008-12-23 11:52 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (90.63 KB, image/gif)
2003-04-01 08:45 UTC, Marian Mirilovic
Details
Patch for release35 (112.91 KB, application/octet-stream)
2003-04-01 10:36 UTC, mslama
Details
Diff (3.47 KB, patch)
2003-04-01 10:37 UTC, mslama
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2003-04-01 08:43:59 UTC
[s1s5](030331), [jdk1.4.1](02)


Steps to reproduce:
- run IDE with new Userdir
- open some java file
- restart IDE
- create new JFrame
-> 
    1. Source Editor is opened as separate window
    2. created form source isn't opened
    3. form editor window has wrong constraints
(attached screenshot)
Comment 1 Marian Mirilovic 2003-04-01 08:45:31 UTC
Created attachment 9617 [details]
screenshot
Comment 2 Marian Mirilovic 2003-04-01 08:47:55 UTC
I have found Source Editor, it was covered by Form Editor window, it
has the same constraints, "only" top component with Welcome panel is
undocked as separate window.
Comment 3 Marian Mirilovic 2003-04-01 10:14:06 UTC
I have filed new issue about undocked separate Welcome panel, issue 32528.
Comment 4 mslama 2003-04-01 10:17:31 UTC
Problem with bounds is identified and fix is ready. Relative bounds of
mode are loaded but not converted to absolute bounds when mode is not
displayed. -> incorrect absolute bounds [0,0,0,0] are stored in such
case. If relative bounds are not yet converted to absolute bounds
original relative bounds must be stored.

Separate Welcome component is different problem.
Comment 5 mslama 2003-04-01 10:36:35 UTC
Created attachment 9621 [details]
Patch for release35
Comment 6 mslama 2003-04-01 10:37:54 UTC
Created attachment 9622 [details]
Diff
Comment 7 Peter Zavadsky 2003-04-01 11:33:10 UTC
I reviewed the patch.
It seems to be fine and safe.
Comment 8 Marian Mirilovic 2003-04-01 11:49:19 UTC
We need a fix for release 3.5.
Comment 9 _ ttran 2003-04-01 12:57:41 UTC
Marian, verified?
Comment 10 Marian Mirilovic 2003-04-01 14:08:52 UTC
patch verified, thanks
Comment 11 _ ttran 2003-04-01 14:17:43 UTC
fix approved by release coordinator for 3.5
Comment 12 mslama 2003-04-01 15:25:52 UTC
Fix is intergrated to main trunk and to release35 branch.

Modified main trunk:
core/src/org/netbeans/core/windows/ModeImpl.java r.1.178
core/src/org/netbeans/core/windows/layers/ModeData.java r.1.113

release35:
core/src/org/netbeans/core/windows/ModeImpl.java r.1.175.2.3
core/src/org/netbeans/core/windows/layers/ModeData.java r.1.110.2.2
Comment 13 Marian Mirilovic 2003-04-02 15:16:12 UTC
verified in [nb3.5](200304012350)