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 33079 - Windows on startup not maximized as on exit.
Summary: Windows on startup not maximized as on exit.
Status: CLOSED DUPLICATE of bug 26598
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Windows 95/98
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2003-04-20 11:32 UTC by bht
Modified: 2008-12-23 09:30 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2003-04-20 11:32:44 UTC
IDE: 3.5 beta 
JDK: 1.4.1
Screen size: 800 * 600 pixels

How to reproduce:

- Open the IDE, use SDI mode.
- Maximize all windows with the windows button on
the title bar
- Close the IDE (main window)
- Open the IDE

Expected behavior:
   All windows should have the size of a maximised
window. I understand that under JDK 1.3 (which I
am not using), there is no way to truly maxinize
but one can get the coordinates and dimensions
right nevertheless.
This worked in older versions of the IDE.

Actual behavior:
   All windows have the right size but they are
offset by x = +4 pixels, y = +4 pixels. The right
and bottom edges are, as a result, cut off (by 8
pixels each I think).

In the log I get a warning:

[WinSys:ModeData] Bounds
java.awt.Rectangle[x=-4,y=-4,width=808,height=608]
are invalid in
org.netbeans.core.windows.layers.ModeData@1a6ac39[Windows/WindowManager/Debugging/Form].
Repaired to
java.awt.Rectangle[x=0,y=0,width=808,height=608]
[WinSys:ModeData] Bounds
java.awt.Rectangle[x=-4,y=-4,width=808,height=608]
are invalid in
org.netbeans.core.windows.layers.ModeData@1a6ac39[Windows/WindowManager/Debugging/Form].
Repaired to
java.awt.Rectangle[x=0,y=0,width=808,height=608]

It's not a major thing, but very untidy and
everyone even those who don't even know what an
IDE is can see it.
Comment 1 Marian Mirilovic 2003-04-22 09:29:41 UTC
I cannot reproduce it, I have tried [nb3.5](beta) on [jdk1.4.2](b20)
and it works as expected.
Comment 2 bht 2003-04-22 11:25:02 UTC
Hmmm... How can I help to reproduce this?
Have you looked at your log file? If your screen is very large then
it's probably difficult to see on the screen only. On the other hand
something might be wrong at my end. What could cause the error message
from the log to occur? It clearly indicates that the IDE wants to make
a fully maximized screen but it fails to do so.

Have you tried to set your screen resolution to 800 * 600 in the
control panel of Windows 98?
Comment 3 Marian Mirilovic 2003-04-22 12:37:40 UTC
No, logs show only that saved boundary are invalid (it's as design, or
impossible to fix it) and we must recover right size, for example
point -4,-4 replace by point 0,0. 

Marek, do you have some explanation ?
Comment 4 mslama 2003-04-22 13:07:16 UTC
There was always problem with maximized window. See issue #26598.
Unfortunately we did not find general solution. One reason is how OS
WM (actualy not sure who exactly is responsible) changes native window
bounds when user maximizes window using maximize window button.
Support of native window maximization in JDK 1.4 is far from perfect.
Comment 5 mslama 2003-04-22 13:07:56 UTC

*** This issue has been marked as a duplicate of 26598 ***
Comment 6 Marian Mirilovic 2003-07-23 15:37:47 UTC
verified, closed - it's duplicate.