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 55577 - Netbeans 4.1 does not remember maximized settings
Summary: Netbeans 4.1 does not remember maximized settings
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: Other Linux
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: REGRESSION
: 56392 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-27 06:34 UTC by johnzoet
Modified: 2008-12-23 00:33 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed fix (1.29 KB, patch)
2005-03-15 12:24 UTC, Stanislav Aubrecht
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description johnzoet 2005-02-27 06:34:45 UTC
When I start Netbeans it does not remember the 
previous maximized state on Mandrake Linux 10.1 
Netbeans starts again in the original 
installation state.
Comment 1 Jan Chalupa 2005-03-15 06:09:27 UTC
*** Issue 56392 has been marked as a duplicate of this issue. ***
Comment 2 Jan Chalupa 2005-03-15 06:11:47 UTC
Works for me on Windows, but there have been more reports of this bug on Linux.

Stan, please look at it.
Comment 3 Marian Mirilovic 2005-03-15 06:20:22 UTC
It doesn't work on Linux :
Linux RH 9 / NB4.1 (200503141900) / JDK 1.5.0_02 (fcs)
Comment 4 Stanislav Aubrecht 2005-03-15 12:24:20 UTC
Created attachment 20835 [details]
Proposed fix
Comment 5 Stanislav Aubrecht 2005-03-15 12:25:29 UTC
martin, can you pls test the patch on linux?
thanx
Comment 6 Martin Krauskopf 2005-03-15 13:53:43 UTC
It works pefrectly. But it worked without problems without the patch as well for
me ;) So reassigning to Marian who have the problem with current implementation.
Probably WM specific (fluxbox works fine).
Could you test it Marian? Thanks.
Comment 7 Marian Mirilovic 2005-03-15 13:58:28 UTC
Ok, 
I will test it, but provide me something what I don't need compile/build,
provide patch as a jar file or patched module.
Thanks in advance.
Comment 8 Roman Strobl 2005-03-15 14:32:08 UTC
I can reproduce this bug on JDS, too. Actually it is very annoying because
everytime I maximize the window, the cursor gets broken (a linux bug in JDK).
This bug causes that cursor is changing incorrectly as I hover over the IDE.
This bug was reported several months ago and closed as a JDK bug. As I have to
maximize the IDE everytime I start it up my cursor gets broken everytime.
Wonderful indeed :-)
Comment 9 Jan Chalupa 2005-03-15 14:37:55 UTC
Ok, so what is the JDK bug number?
Comment 10 Roman Strobl 2005-03-15 15:02:18 UTC
Found it! See #50647 and #48188. JDK bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5097604
Comment 11 Milos Kleint 2005-03-15 15:03:53 UTC
maximization is somewhat broken (sick) in swing, since one has to show the
window before setting the window flag. if you combine it with gnome which i
consider sick too,.. well... 

in our winsys initialization we show the component and then set the window as
maximized. during that time we also set listeners to the windows, to get
notified of the window state and update our model.. maybe we get some events
that we confuse for something else? on startup or shutdown.
I know about this lovely gnome feature that it calls "minimize/iconify" on all
windows on a particular virtual desktop and then when returning, it triggers
"deiconify" event. Maybe this maximization issue could be related to something
similar. (like gnome calls "restore" when exiting app or something like that).
Is the correct frame state persisted across IDE sessions?
Comment 12 Jan Chalupa 2005-03-15 15:18:24 UTC
Roman: no, it's not a JDK bug. What you found is a copy of the NetBeans bug
#48188 in the Sun's bug parade. If we really believe there's a JDK bug there, we
need to make sure it's filed against the 'java' category (preferably with a test
case that shows that problem can be reproduced with a simple Swing app).
Comment 13 johnzoet 2005-03-15 20:40:00 UTC
I have several other Swing programs running on my PC and none have the 
maximized frame problem. 
Does Netbeans use a threadsafe startup of the main frame ? 
Like: 
=> 
    // Set controls on frame 
    pack(); 
    // Threadsafe startup of main frame 
    Runnable runner = new FrameShower(this); 
    EventQueue.invokeLater(runner); 
 
    private static class FrameShower implements Runnable { 
        final JFrame frame; 
        public FrameShower(JFrame frame) { 
            this.frame = frame; 
        } 
        public void run() { 
            frame.setVisible(true); 
        } 
    } 
=> 
 
Comment 14 Marian Mirilovic 2005-03-16 10:38:20 UTC
I've tried patched build and it works fine.

So Standa or Martin, please commit patch to CVS.

Thanks in advance.
Comment 15 Stanislav Aubrecht 2005-03-16 15:34:49 UTC
fixed - integrated the patch

Checking in DefaultView.java;
/cvs/core/windows/src/org/netbeans/core/windows/view/DefaultView.java,v  <-- 
DefaultView.java
new revision: 1.49; previous revision: 1.48
done
Comment 16 Marian Mirilovic 2005-03-17 12:51:42 UTC
verified in NB4.1(200503170655)
Comment 17 Roman Strobl 2005-03-18 16:08:49 UTC
Just for completeness - this is a reply on Honza's comment about the other issue
connected with mouse cursor: I have filed a bug against JDK for mouse cursor
misbehaviour through bugster as #6242833.
Comment 18 Stanislav Aubrecht 2005-03-18 16:44:39 UTC
maximizing the window prior showing it works fine on ms windows but it doesn't
work on linux afaik.