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 21343 - Open File dialog can be opened more the once
Summary: Open File dialog can be opened more the once
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Open File (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: Marian Petras
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2002-03-08 11:26 UTC by Lukas Hasik
Modified: 2004-02-26 13:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot with more Open File dialogs opened (43.13 KB, image/png)
2002-03-08 11:28 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2002-03-08 11:26:48 UTC
build 200203080100, jdk1.4-b92, MDI

-start IDE with clean userdir
-do quick x-click on Open File... button on Welcome Screen or in toolbar

-> Open File dialog opens more than once

Couldn't this action open only one dialog ?
Comment 1 Lukas Hasik 2002-03-08 11:28:37 UTC
Created attachment 4994 [details]
screenshot with more Open File dialogs opened
Comment 2 _ lkramolis 2002-03-08 13:57:29 UTC
Why do you click on it more than once? I do not want to fix it, sorry.
Comment 3 Lukas Hasik 2002-03-11 18:21:35 UTC
Why I clicked two times ? It was by mistake and because of slow
response of IDE.
Can you image how I was frightened by all these Open File wizards ? ;)
Which is the right one ? Can I close the rest of them etc... these was
question that I had in my mind. So we don't want to scare our users,
do we ?

BTW: it's strange behaviour that modal dialog can be invoked more
times, synchronize it somehow ;))

Is there any valuable reason why this isue should be marked WONTFIX ?
Comment 4 _ lkramolis 2002-05-09 13:06:50 UTC
It is same behavior as any other icon button which open modal dialog.

A: Modal dialog is opened from method which can be called multiple
times so I am not able to avoid multiple opening.
Comment 5 pfelenda 2003-04-17 17:24:50 UTC
This issue still happends in dev 200304160100.
I reproduce it only by first opening Open dialog, because
dialog was opened longer than 1 sec.

Open dialog is modal and should be present only once.
I know that this is not stadard use of IDE, but this issue can
bring improper behavior (errror) in newer version.

I don't know any application which has the same behavior of 
toolbar buttons. Which opens modal dialogs more than once.
This dosn't reflect good quality of NB IDE.
Comment 6 Marian Petras 2003-08-06 16:18:16 UTC
Note 1:
Opening multiple modal dialogs is possible due to NetBeans' threading
policy - actions (like OpenFileAction) are not executed in the AWT
event dispatching thread.

Note 2:
This problem applies also to the Find action and maybe several more
actions. I am going to fix the problem for all actions in the
Utilities module.
Comment 7 Marian Petras 2003-08-07 13:53:37 UTC
Fixed in the trunk.
Comment 8 Lukas Hasik 2004-02-26 13:51:45 UTC
ok, verified