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 46884 - (Windows) Project chooser opens over My Documents, but new projects created in user home
Summary: (Windows) Project chooser opens over My Documents, but new projects created i...
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: David Konecny
Depends on:
Blocks: 41535
  Show dependency tree
Reported: 2004-08-04 00:50 UTC by _ tboudreau
Modified: 2006-03-24 10:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2004-08-04 00:50:10 UTC
Whenever I want to open an existing project on 
Windows, I get a file chooser opened on My 
Documents.  But new projects are created by 
default in the user home dir - so I have to 
navigate to the root of the drive, then into 
Documents and Settings/tim to find them.

Probably projects should be created in My 
Documents on windows.
Comment 1 Jesse Glick 2004-08-04 01:03:21 UTC
I believe the Open Project dialog just defaults to ${user.home} or
whatever dir you last opened a project from.
Comment 2 _ tboudreau 2004-08-04 02:23:07 UTC
Not a P5.  Consider how annoying this is - if you reinstall or run
with a clean user dir, you cannot find any of your existing projects
unless you know (many people don't) that they're put in "C:\Documents
and Settings\username".  The new project wizard quietly puts it in
your home dir - most people will not even notice where it's going -
the UI does a *good* job of making it simple to create a project -
simple enough that it doesn't draw attention to where it's being created.

Now you create a project somewhere else on your disk, and you want to
reopen the first project you created.  Where is it?  There's a nice
big My Documents button on the left in the file chooser.  Nope, not
there.  In fact, there's no direct access to the home dir without
navigating through the root of the drive.

Further, try this on Windows:  Start with a clean user dir.  Create a
new project.  Close it.  Choose Open Project.  Where's your project? 
Assuming you noticed, you have to navigate to the root of the drive
and drill through Documents and Settings to find it.

This *is* a serious usability problem - we don't want someone's first
experience with NetBeans being creating a project and having it
Comment 3 Petr Hrebejk 2004-08-04 09:19:43 UTC
Trung, do you know something about it?
Comment 4 Jesse Glick 2004-08-04 18:08:00 UTC
Trung writes (separately):

C:\Documents and Settings\ttran

this is ${user.home} on Windows and is offered as the default in many
file/dir choosers.  this is pretty dumb.  I'll fix it for new/open
project and open file wizard.

if windows && ${user.home} starts with <any char>:\
    set file chooser's currentdir to "<any char>:\"


Or just patch core to change the user home dir to something else
during startup.

A mild -0 from me; prefer to ask the JRE team to choose a more
meaningful user.home on Windows, or somehow make the file chooser
better aligned with this system property, or introduce a different
system property for "user documents and files", etc.

Note that after you use the dialog in a given session, the last dir is
supposed to be used the next time you open it.
Comment 5 _ tboudreau 2004-08-04 18:36:16 UTC
> Note that after you use the dialog in a given session, the last dir is
> supposed to be used the next time you open it.

Probably the new project wizard should also set this directory when a new project is 
created (this would semi-solve the problem except in the case of a clean userdir but 
existing projects).
Comment 6 _ ttran 2004-08-04 20:54:28 UTC
the original bug report has very little to do with the Jesse's and
Tim's last comments.

Nonetheless, I agree with Jesse that my tweaking would be done better
in  JRE.

Re choosing a more sensible ${user.home}:  Nope.  the current mapping
is  correct.  that's the only dir on Windows which can be considered

Re patching ${user.home}: Nope

The correct solution, IMO, would be fixing Windows L&F file chooser to
match the native one.

In the current state it's bad out-of-box experience.  Not usability
problem per se, it "only" makes the IDE look stupid

Comment 7 _ ttran 2004-09-06 14:13:21 UTC
fixed.  Now the IDE offers C:\ instead of C:\Document and
Settings\joeuser as the default in project choosers and open file chooser
Comment 8 _ ttran 2004-09-08 12:17:51 UTC
I reverted the patch
Comment 9 _ ttran 2004-09-08 12:18:50 UTC
David, please look at the original issue Tim reported.  You're one of
the few on Windows.  Thx
Comment 10 David Konecny 2004-09-08 16:00:57 UTC
I changed the project open to default to user dir too.

Fixed in:
new revision: 1.12; previous revision: 1.11
Comment 11 David Konecny 2004-09-08 16:06:49 UTC
I saw one strange thing: if you change folder to <d:\Document and
Settings\username\My Dodocuments\> in new proejct wizard it will claim
that this folder is readonly. I found that
really returns false for this and couple of other system-like folders:
<d:\Document and Settings\username\Desktop\>, <d:\Document and
Settings\username\Application Data\>. Could somebody else please check
it on their windows that it is really does not work? Looks like JDK
bug. I tried both 1.4.2 and 1.5.0.
Comment 12 Marian Mirilovic 2005-12-20 15:49:33 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.