Setting Up and Modifying Java Packages


You can set up a Java package in the New Project and New File wizards.

To create a new package, right-click the Source Packages node within your project and choose New | Java Package. In the wizard, fill in a period-delimited package name (for example, com.mybiz.myapp).

You can then move classes into this package by cutting and pasting or by dragging their nodes.

When you move classes, the Move Class dialog box opens and offers to update the rest of the code in the project to reflect the changed location of the class. Click Next to see a preview of the changes in the Refactoring window. Then click Do Refactoring to make the changes.




NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 279

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net