110 likes | 294 Views
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.
E N D
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
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.
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
本次lab要求 • 参考系统自带的计算器 • 实现+-*/基本功能 • 菜单功能可以选做,但必须有菜单