Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 30280 - No selected node after opening a file
No selected node after opening a file
Product: platform
Classification: Unclassified
Component: Window System
All All
: P3 (vote)
: 3.x
Assigned To: Peter Zavadsky
: A11Y, FOCUS, T9Y
Depends on:
  Show dependency treegraph
Reported: 2003-01-22 17:08 UTC by Tomas Pavek
Modified: 2008-12-22 16:06 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Pavek 2003-01-22 17:08:34 UTC
[build dev 20030122]
After opening a file in editor, focus is
transferred to editor (you can write), but it
looks like the editor TopComponent is not
activated - invoked context menu (Shift+F10) has
many disabled items, there's nothing in the
properties window etc. The same happens if opening
e.g. a picture (.gif file).
Comment 1 Marian Mirilovic 2003-01-23 10:57:32 UTC
reproducible in [nb_dev](20030123), [jdk1.4.2](b14)

Steps to reproduce:
- run IDE
- close welcome screen
- doublick on some node in the Explorer
-> file is opened in Source Editor window, has focus, but in the
Properties window is present label "No properties" and after
invocation popup menu (Shift+F10) items are disabled
Comment 2 Peter Zavadsky 2003-01-29 16:13:50 UTC
It is about selected component in container. It is not set, in that
case. I don't understand the code in
DefaultContainerImpl.addTopComponent. There is code that selects the
newly added component only in case it is already contained in
container, what sounds to me as a nonsense.

Another reason to redesign also this part of winsys..
Comment 3 Peter Zavadsky 2003-01-29 16:48:54 UTC
Fixed in [trunk]

core/../windows/ 1.172

Note: Problem was the newly added component (which should become also
selected one) to mode is really set as selected just when attaching to
container. But activated nodes are fired when activating the frame.
The order of these two things was wrong. (I hope I din't break another
obscure thing by this).

Anyway, all that above says, the winsys hadles such a things like
selection in a too complicated and error-prone manner. All that has to
be redesigned, so similar problems are avoided.
Comment 4 Marian Mirilovic 2003-01-30 09:22:14 UTC
verified in [nb_dev](20030130)

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo