1 / 11

NetBeans IDE

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.

Download Presentation

NetBeans IDE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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

More Related