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.
NB trunk build 200405182245, JDK1.4.2. 1. Starting with a clean userdir. 2. Open a project with at least two distinct packages. 3. Select the second (in order) package. 4. Right-click, New/Java Class... 5. In the following dialog the "Package" field is _always_ the first package. I would suppose that after right-click on a package, these values are pre-defined to the correct package/location. This is very inconvenient, because it is always necessary to check "Package" and "Location" values and set the as required. BTW: something similar holds for the "Location" field, in this case it is "Source Packages" vs. "Test Packages".
I believe this is already fixed in the trunk.
Yes this was fixed with the rewrite of the New Java File wizard. The source root and package should be preselected correctly by the context.
Verified in 200405241800.