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 181958 - top component given focus without being activated
Summary: top component given focus without being activated
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
: 181724 182075 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-12 18:49 UTC by err
Modified: 2010-03-16 07:42 UTC (History)
3 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 err 2010-03-12 18:49:15 UTC
The editor in the dev builds takes focus when
  - the mouse is moved into the area of the editor
  - the mouse holds still for a small period of time
  - the mouse is moved again, but stays within the particular editor
  - Note there is no mouse-press in the target editor
Observe
  -This changes the focus to the window, i.e. the cursor becomes visible in
    the target editor
  - The top component is not "activated", this can be observed by outputting
    a message from a TopComponent.getRegistry() listener

One big problem is that the undo/redo buttons are still hooked up to their previous top component. I would guess there are other similar problems.

With PowerToys&tweakUI, system is configured as X-mouse (focus follows mouse) but this is unlikely to be a factor since the mouse is always staying within the bounds of NetBeans' main window.

Product Version: NetBeans IDE Dev (Build 201003120200)
Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\erra\.netbeans\dev
Comment 1 err 2010-03-12 19:02:23 UTC
Note this has some similarities to Bug 175809
Comment 2 David Strupl 2010-03-15 13:54:21 UTC
Vito, can this be related to your recent changes in the tooltip area? I am able to reproduce this on my MacOSX in the today's build (20103015).
Comment 3 Vitezslav Stejskal 2010-03-15 15:18:35 UTC
Maybe. I'll have a look.
Comment 4 Vitezslav Stejskal 2010-03-15 15:19:19 UTC
*** Bug 181724 has been marked as a duplicate of this bug. ***
Comment 5 Vitezslav Stejskal 2010-03-15 16:51:18 UTC
http://hg.netbeans.org/jet-main/rev/f0e731a405bd
Comment 6 Quality Engineering 2010-03-16 05:18:28 UTC
Integrated into 'main-golden', will be available in build *201003160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f0e731a405bd
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #181958: focus the editor component only if the tooltip is ESCaped; plus focus it the right way so that the TopComponent is activated as well
Comment 7 Vitezslav Stejskal 2010-03-16 07:42:02 UTC
*** Bug 182075 has been marked as a duplicate of this bug. ***