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 36742 - FileArrayEditor fires each selection change twice
Summary: FileArrayEditor fires each selection change twice
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Property Editors (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-22 12:04 UTC by _ tboudreau
Modified: 2008-12-22 13:57 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 _ tboudreau 2003-10-22 12:04:39 UTC
More of a note to myself to fix this.  

FileArrayEditor is listening on a JFileChooser
(try the mount dialog) for changes.  When you
select a folder with the mouse, JFileChooser will
fire two property changes - one from
setSelectedFile and one from setSelectedFiles. 
FileArrayEditor should discriminate and not refire
both these events - while it's trivial, it is
causing PropertyPanel to try to write the value
back to the property twice - if an error dialog
needed to be shown, there would end up being two
of them.
Comment 1 _ tboudreau 2004-04-19 14:52:56 UTC
Passing property editor issues to new owner, Jirka
Comment 2 Denis Anisimov 2008-03-12 14:44:36 UTC
changeset:   72600:15ceea274cb6