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 44372 - Strange sliding behavior of output window
Summary: Strange sliding behavior of output window
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: David Simonek
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2004-06-05 21:07 UTC by Jesse Glick
Modified: 2008-12-22 15:53 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 Jesse Glick 2004-06-05 21:07:40 UTC
Dev builds, broken for some time now.

OW2 asks to be made visible when you open a tab,
as e.g. when running an Ant build. It does not ask
for the focus (intentionally).

If I have all of my (non-document) windows set to
sliding mode, the OW works strangely. Say I have
the Projects tab open (slid in from the left), and
I right-click some project to build it. Now the OW
slides in from the bottom - but it is underneath
the Projects tab, so I can't see the left half of
it. This is odd; I would expect it to be displayed
on top of the Projects tab (though I do not want
focus in it).

Worse, if I click on the title bar of the OW, this
does not send select it or send focus to it!
Pressing Ctrl-4 does select and send focus to the
OW (and closes the Projects tab).

UI in this area needs to be reviewed. I think the
handling of requestVisible is what is wrong.
Comment 1 David Simonek 2004-06-17 17:16:25 UTC
There are several issues:
1) Clicking doesn't activate slided in component in winsys context - 
- this is bug, to be fixed.
2) When in sliding mode, output *should* ask for the focus, exactly to
be on the top and to dismiss Projects tab. We may want to implement
some more finetuned "multi-layering" rechnique for sliding windows,
but we need usability study to see what is really needed. 

After fix of http://www.netbeans.org/issues/show_bug.cgi?id=44304,
system will behave like follows:

1) Projects tab, run build
- Output tab slide in, with focus, Projects tab hides
2) Watch output, leave it as is or press ESC
- after ESC you are back in editor, no sliding windows visible
-----

If you prefer sliding OW to not get focus, believe me you don't in
reality :-) There are several problems connected with it:
- how to hide OW again? no ESC (don't have a focus)
- how to display OW on top of Projects - it clashes with simple, nice
rule that sliding with focus is always on top and that there should be
only one window slided in at the time (well, last rule is not yet
enforced totally in code as you may see)

Comment 2 Jesse Glick 2004-06-17 17:35:41 UTC
Re. "how to hide OW again? no ESC (don't have a focus)" - no problem.
Just press Ctrl-0 (for example) and the editor keeps focus and the OW
disappears. Not completely obvious but works fine.

But I have no problem with OW receiving focus when it slides in, since
I can press ESCAPE to get rid of it. If the OW is *not* in sliding
mode this could be annoying - most of the time if you are just
pressing F9 or something, you do not want to send focus from the
editor to the OW.
Comment 3 David Simonek 2004-06-17 17:45:26 UTC
Yes you are right, in non-sliding mode, OW shoudn't get focus. This is
all bug http://www.netbeans.org/issues/show_bug.cgi?id=44304 is about.
Comment 4 David Simonek 2004-06-23 17:00:57 UTC
part 1 fixed in main trunk, part 2 is being solved in
http://www.netbeans.org/issues/show_bug.cgi?id=44304.

Checking in
windows/src/org/netbeans/core/windows/model/TopComponentSubModel.java;

/cvs/core/windows/src/org/netbeans/core/windows/model/TopComponentSubModel.java,v
 <--  TopComponentSubModel.java

new revision: 1.9; previous revision: 1.8

Checking in
windows/src/org/netbeans/core/windows/view/ui/TabbedHandler.java;

/cvs/core/windows/src/org/netbeans/core/windows/view/ui/TabbedHandler.java,v
 <--  TabbedHandler.java

new revision: 1.11; previous revision: 1.10
Comment 5 Marian Mirilovic 2005-12-20 15:50:51 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.