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 117671 - NetBeans doesn't reflect Mac specific maximization policy
Summary: NetBeans doesn't reflect Mac specific maximization policy
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: David Simonek
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2007-10-03 16:57 UTC by michaellatta
Modified: 2011-06-09 09:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
netbeans project containing test app for tracking window states (66.73 KB, application/octet-stream)
2007-10-17 15:00 UTC, David Simonek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description michaellatta 2007-10-03 16:57:51 UTC
NetBeans keeps opening as a full-screen sized window, which on my 30" monitor is not what I want.  I would prefer it retain the window size and position 
from the last session.
Comment 1 Marian Mirilovic 2007-10-12 15:53:58 UTC
It works for me on Linux/Gnome ... should be another Mac related issue ... anyway reporter, please provide build number
+ JDK version you are working on. Thanks in advance.
Comment 2 michaellatta 2007-10-12 18:46:20 UTC
MBP:~ lattam$ java -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)

Product Version: NetBeans IDE 6.0 Beta 1 (Build 200709141330) Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 System: Mac OS X version 10.4.10 
running on i386; MacRoman; en_US (nb) Userdir: /Users/lattam/.netbeans/6.0beta1
Comment 3 David Simonek 2007-10-15 08:40:05 UTC
Is this issue reproducible always, on every start? Is it reproducible with new, clean userdir?
Comment 4 michaellatta 2007-10-15 08:44:36 UTC
This is 100% reproducable on my system.  I am not sure what you mean by a clean userdir.  This was a clean install with no prior version of NetBeans installed.
Comment 5 David Simonek 2007-10-15 12:02:19 UTC
userdir is a directory where NetBeans stores persistent configuration data , usually can be found at
<your_home_dir>/.netbeans. Please backup this directory, delete all its content, run NetBeans again and tell me if you
can still reproduce - i can't.  Btw, did you do maximize/full screen during your work in IDE? Or any special window
arrangement?

For your regular work then overwrite userdir again with your backup data. Thanks.
Comment 6 michaellatta 2007-10-15 18:57:16 UTC
It looks like your guess was correct.

1) It is opening as a maximized window.
2) If I hit the maximize window button it goes back to the last resize I did, and will reopen at that size.
3) If I resize the window while NetBeans thinks it is maximized it records the new window size, but does not clear the maximize flag, and opens maximized 
the next time.

This is all without changing my userdir.

Michael
Comment 7 David Simonek 2007-10-17 07:28:08 UTC
Ugh, I'm confused now...how can you change window size while it is maximized?

Let's start from the beginning, please tell me in exact 1,2,3 steps what you need to do in order to see the bug occur.
Sorry for my slow thinking but it's hard to guess from written word only...
Comment 8 michaellatta 2007-10-17 07:39:18 UTC
This may be a mac vs. windows thinking thing.

1. Open NetBeans.
2. Select the green button on the window (this maximizes the window).
3. Grab the lower right corner and resize.
4. Close NetBeans.
5. Open NetBeans (note the window is back to full screen.
6. Select the green button.  (note window returns to window size in step 3)

It looks like NetBeans is not clearing the maximized flag when it should do so on step 3.

Michael
Comment 9 David Simonek 2007-10-17 14:59:31 UTC
I see, now it's clear. I tried and really Mac native apps will restore their state to "normal" as soon as user changes
the size of the window while being maximized. Wow...

Unfortunately, NetBeans is not getting correct events from Apple's JDK and so I can't fix the bug.

I entered bug to Apple bug database, ID 5544982.

For those who have Apple's developer connection membership, it should be viewable at
https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/5/wo/bcTPyw6Wbl5bcdHQrik4bM/16.21

So we'll see what Apple will have to say...

I'm attaching test app, just in case it would get lost.
Comment 10 David Simonek 2007-10-17 15:00:41 UTC
Created attachment 51122 [details]
netbeans project containing test app for tracking window states
Comment 11 Stanislav Aubrecht 2008-06-26 14:18:02 UTC
i think this is actually fixed in issue #125881
Comment 12 Marian Mirilovic 2011-06-09 09:56:40 UTC
v/c