1 / 11

The NetBeans IDE

The NetBeans IDE. CSIS 3701: Advanced Object Oriented Programming. Integrated Development Environment. Single environment with tools for: Generating and editing source code Compiling and executing code Testing and debugging code NetBeans IDE for Java

yori
Download Presentation

The 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. The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming

  2. Integrated Development Environment • Single environment with tools for: • Generating and editing source code • Compiling and executing code • Testing and debugging code • NetBeans IDE for Java • Available with Java from Sun (http://java.sun.com) • Available separately from http://www.netbeans.org • See “Homework 0” on course web site for more details

  3. NetBeans Organization • Applications organized into projects • Contains all files associated with application(source code, executables, testing, etc.) • Projects contain packages • Groups of related files (like C++ libraries) • Packages contain individual files • Each class in own file • Class is application if contains a main function(can be executed in standalone mode)

  4. Creating Projects • Select File  NewProject

  5. Creating Projects • Choose Java as category and then Java Application

  6. Creating Projects • Give basic information about project • Project name • Where stored on computer Automatically creates a “main” class with same name as project

  7. Basic Project Structure • Project listed on left • Contains packages for that projectBy default package with same name as project automatically created under Source Packages • Package contains main class defined when project created • Will see other packages besides source packages later (testing, etc.)

  8. Editing a Class • Source code written and edited in IDE • Color coded by type: • Keywords blue • Identifiers green • Strings orange • Comments grey

  9. Editing a Class • Automatically checks syntax of class after every change • Syntax errors highlighted in red • Hints available on rollover

  10. Compiling and Running a Project • Can compile (“build”) and run from Run menu • Running automatically saves and compiles project • Can use shortcut

  11. Running a Project • Code executed starting in main method of the main class • GUI output popped up in separate window • Text written to standard output displayed in “Output” tab on bottom of NetBeans window

More Related