Download File > New Project

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
NetBeans IDE
程序设计B班
2007-12-20
Outline




What is NetBeans?
Developing General Java Applications
Creating GUI for an application
Debugging with NetBeans IDE
What is NetBeans?

IDE: Integrated Develop Environment




Compile code
Run code
Run code in a debugger
Syntax highlighting
NetBeans IDE 6.0
Developing General Java Applications






Creating a New Java Application
Choose File > New Project. Under Categories, select
Java. Under Projects, select Java Application and click
Next.
Under Project Name, enter MyApp. Make sure the
Project Location is set to NetBeansProjects.
Enter demo.FirstClass as the main class.
Ensure that the Set as Main Project and Create Main
Class checkboxes are checked.
Click Finish. The MyApp project is displayed in the
Project window and FirstClass.java opens in the
Source Editor.
Editing a Java File
Compiling and Running the Project



Setting the Main Class and Execution
Arguments
Running the Main Project
Cleaning and Building the Project
Testing and Debugging the Project



Creating JUnit Tests
Running JUnit Tests
Debugging the Project
Creating the graphical user interface (GUI)
for an application








Use the GUI Builder Interface
Create a GUI Container
Add Components
Resize Components
Align Components
Adjust Component Anchoring
Set Component Auto-Resizing Behavior
Edit Component Properties
Debug
——Locating the bugs and Fixing them
本次lab要求



参考系统自带的计算器
实现+-*/基本功能
菜单功能可以选做,但
必须有菜单
Related documents