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.
When the user hits the browse button on the generate code dialog, the "Choose the Target Source Folder" dialog starts at My Documents on windows. A better location would be the the default folder location or possibly the parent of the default.
this issue might be related to issue 105333.
ops, I meant issue 105642 that I just reopened because it's no longer working in recent build. It was fixed in the previous builds.
Issue 105642 is about the contents of the folder being incorrect is differnet thant this issue regarind the starting locations for the browse button.
The default folder that is sent to the file (directory) chooser dialog is not an existing folder because it is typically yet to be created and therefore it defaults to some OS dependent directory (home dir probably). Solution is to work backwards up the path parent chain on the derived default directory until a valid directory is found and use that.
search up the path parent chain for first valid folder and use that as the starter folder for the chooser.
this is no longer valid in new code gen dialog.