How To Create A Java Program Using NetBeans
How To Create A Java Program Using NetBeans
2. Click the “File” menu choice and then select “New Project”. This
brings up the dialog box for creating a new project.
3. Select “Java” and then select “Java Application”. Click “Next”.
This brings up your project configuration dialog box. Enter “Project
Name” and “Project Location”. Un-Check both the “Create Main
Class” and “Set as Main project” check boxes. Then click “Finish”.
6. NetBeans will automatically refresh, and the source code will show:
7. Right click the “Pay.java” and select “Run File”:
10. Now you can copy the “SalesText.java” file into the src directory:
11. You can check the NetBeans project refreshed screen:
Notice the red dot on the file “SalesText.java”. The red dot indicates
that this file has one or more syntax errors:
You can edit the source file by double click “SalesText.java”. It will
show you the error with a red wavy underline. Try to modify the file
and save it (from menu File -> Save) until the errors are all solved:
Right click “SalesText.java” and select “Run File”, and enter data: