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 42581 - Search button remains disabled if text is pasted using mouse
Summary: Search button remains disabled if text is pasted using mouse
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@utilities
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-28 17:34 UTC by Marian Petras
Modified: 2004-08-13 12:12 UTC (History)
0 users

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 Marian Petras 2004-04-28 17:34:43 UTC
In the Search dialog, if the Substring field is
filled by pasting text from the clipboard using
mouse (by pressing the middle button), the Search
button remains disabled.

If the paste action is invoked using a keyboard
shortcut (Ctrl-V), the Search button gets enabled.
Comment 1 Marian Petras 2004-06-30 15:32:32 UTC
Accepted.
Comment 2 Marian Petras 2004-06-30 15:34:27 UTC
Caused by the fact that typing into textfields (substring/regexp) is
detected by key listeners, not by document listeners. If the text is
not typed but pasted or entered in yet another way, the UI is not
notified of the change of textfields contents.
Comment 3 Marian Petras 2004-06-30 16:03:01 UTC
Fixed in the trunk.

Modified file:
   utilities/src/org/netbeans/modules/search/types/TextCustomizer.java   (1.23)