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 43526

Summary: New Java Class inconvenience
Product: java Reporter: Jan Lahoda <jlahoda>
Component: UnsupportedAssignee: Petr Hrebejk <phrebejk>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    

Description Jan Lahoda 2004-05-19 10:29:14 UTC
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".
Comment 1 Jesse Glick 2004-05-19 18:27:45 UTC
I believe this is already fixed in the trunk.
Comment 2 Petr Hrebejk 2004-05-21 11:09:27 UTC
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.
Comment 3 Jan Lahoda 2004-05-25 14:58:16 UTC
Verified in 200405241800.