Netbeans/C2/Introduction-to-Netbeans/English

From Script | Spoken-Tutorial
Revision as of 18:05, 27 November 2012 by Chandrika (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Resources for "Introduction to Netbeans"


Visual Cue
Narration
Show slide number 1 Hello everybody.


Welcome to the tutorial on Introduction to Netbeans IDE.


In this tutorial I will introduce you to the basics of getting started with Netbeans.

Switch to Browser to show Netbeans Website * Netbeans is a free and open-source Integrated Developement Environment available at www.netbeans.org.
  • It allows for integration of various components.
  • Supports various scripting languages and advanced text editors.
  • Provides GUI to create and design projects and also supports databases.


Switch to Slide 2

Pre-Requisites

To finish this tutorial, basic knowledge in the Java Programming Language is necessary.


Standard programming terminologies have been used in this tutorial.

Slide 3

System Setup

To get started with Netbeans,


I am using the Linux operating system Ubuntu, version 11.04


and Netbeans version 7.0.1

Slide 4

Lesson Outline

In this tutorial , we will look at the installation of Netbeans,

get familiarised with the interface of Netbeans, and

Create a sample Java Project.

Switch to Browser


Installation Process

Let us first look at first installing the IDE.


Netbeans can be downloaded from www.netbeans.org.


Click on the Download link on the main page of the site.


On the next page which loads, click on the download link in the last column which includes all the supported technologies along with Glassfish Server.


The installation of Netbeans also requires the installtion of the Java Development Kit, JDK, which can be downloaded from java.sun.com.


Click on the Get Java link here and select the link to download both the Netbeans and JDK Bundle.


Select the setup file for your operating system.


On Ubuntu, the setup file is downloaded as a .sh file,


i.e as a shell script file.


Run this file by going to the Terminal from the Applications and Accessories menu.


Type sh followed by the name of the setup file, hit Enter.


This will start the installer.


You can launch the IDE by going to the Ubuntu menu item Applications > Programming > Netbeans IDE.

Switch to Netbeans Window Let us now look at the Netbeans Window.


When you first launch the IDE, it opens the Netbeans Start Page.


The IDE window contains

  • menus
  • toolbars
  • workspaces like,
    • file system window
    • runtime window
    • output window


Menu Bar


Tool Bar


Workspace

The main menu provides most of the commands you need to use Netbeans, including


creating, editing, compiling, running and debugging programs.


The tool bar provides buttons for several frequently used commands on the menu bar.


Workspace is a collection of windows that are used for performing certain types of operations


such as editing, execution, output, or debugging.

Creating a Project Creating a Project


Let us create a Sample Java Project now.


A project contains information about programs and their dependent files.


It also stores and maintains the properties of the IDE.


To create and run a program, you have to first create a project.

To create an IDE project:

In the menu bar, choose File > New Project.


In the New Project wizard, expand the General category and select Java Application.


Click Next.


In the Name and Location page of the wizard, do the following


  • In the Project Name field, type KeyboardIntegerReader.
  • Leave the Set as Main Project checkbox selected.
  • Click Finish.

The project is created and opened in the IDE. You should see the following components:

  • The Projects window, which contains a tree view of the components of the project, including source files, libraries that your code depends on, and so on.
  • The Source Editor window with a file called KeyboardIntegerReader open.

In the main class, I have now entered a sample java code,

which reads input from the keyboard and gives an output indicating if is a whole number or a floating point number

I am now copying this code which was written earlier, and pasting it into the main class.

Running the Project When you run a java application, the IDE:
  • builds and compiles the application code
  • runs the program in the output window

Right-click on the project node in the Projects window, and select the Run option.


You can also select the Run option from the toolbar or press F6 on your keyboard to run your projects.

Switch to Slide 5

(Assignment)

Now to the Assignment


As an extension to the KeyboardIntegerReader program,


construct a project which converts temperatures (integers)


from Celsius to Farenheit and vice versa.

Switch to Netbeans Window


Show solved Assignment

I have created my Temperature Convertor Project.

When I run this project, the IDE prompts me for the input temperature in Output terminal below the workspace.

Slide 6

About the Spoken Tutorial Project

The video available at http://spoken-tutorial.org/What_is_a_Spoken_Tutorial summarizes the Spoken Tutorial project.

If you do not have good bandwidth, you can download and watch the videos.

We conduct workshops using Spoken Tutorials.

We also give certificates to those pass an online test.

Please contact us more details.

Switch to slide number 7

(Acknowledgement)

This project is co-ordinated by www.spoken-tutorial.org.


More information on the same is available at http://spoken-tutorial.org/NMEICT-Intro


Switch to slide number 7

(Thank You)

Thank you this is Sindhu, from IT for Change signing off.


Enjoy exploring Netbeans.

Contributors and Content Editors

Chandrika, Pravin1389