Presentation is loading. Please wait.

Presentation is loading. Please wait.

NetBeans IDE 程序设计 B 班 2007-12-20. Outline What is NetBeans? Developing General Java Applications Creating GUI for an application Debugging with NetBeans.

Similar presentations


Presentation on theme: "NetBeans IDE 程序设计 B 班 2007-12-20. Outline What is NetBeans? Developing General Java Applications Creating GUI for an application Debugging with NetBeans."— Presentation transcript:

1 NetBeans IDE 程序设计 B 班 2007-12-20

2 Outline What is NetBeans? Developing General Java Applications Creating GUI for an application Debugging with NetBeans IDE

3 What is NetBeans? IDE: Integrated Develop Environment  Compile code  Run code  Run code in a debugger  Syntax highlighting

4 NetBeans IDE 6.0

5 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.

6 Editing a Java File

7 Compiling and Running the Project Setting the Main Class and Execution Arguments Running the Main Project Cleaning and Building the Project

8 Testing and Debugging the Project Creating JUnit Tests Running JUnit Tests Debugging the Project

9 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

10 Debug —— Locating the bugs and Fixing them

11 本次 lab 要求 参考系统自带的计算器 实现 +-*/ 基本功能 菜单功能可以选做,但 必须有菜单


Download ppt "NetBeans IDE 程序设计 B 班 2007-12-20. Outline What is NetBeans? Developing General Java Applications Creating GUI for an application Debugging with NetBeans."

Similar presentations


Ads by Google