Advances Java 4
Advances Java 4
Netbeans
Topic 4
What is an IDE?
IDE(Integrated Development Environment) is a programming
environment integrated into a software application that provides a GUI
builder, a text or code editor, a compiler and/or interpreter and a
debugger. Visual Studio,Netbeans and DreamWeaver are all examples of
IDEs.
What is java?
java is a object oriented programming language which enables you to
create applications.
Requirements
• You are familiar with menu bars as you have worked with MS-
Windows operating system.
• A menu bar is displayed directly below the title bar and includes a lot
of options. Each option on the menu bar has a drop down list of item
(known as Pull-down menus) that helps you to perform various tasks.
Toolbar
• A tool bar is a bar that displays icons for commonly used tasks.
• The standard toolbar of Netbeans IDE displays icons for the most
frequency used commands in Netbeans.
Project Window
• The Projects window is the main entry point to your project sources.
It shows a logical view of important project content.
• In addition to the Projects window, the IDE
provides the Files window, so that you can
see all the files that belong to a project,
and the Favorites window, where you can
add folders and files so that they can be
browsed within the IDE.
Navigator
• The GUI Builder's primary window for creating and editing Java GUI
forms. The toolbar's Source button enables you to view a class's source
code, the Design button allows you to view a
graphical view of the GUI components, the
History button allows you to access the local
history of changes of the file.
• The additional toolbar buttons provide
convenient access to common commands
, such as choosing between Selection and
Connection modes, aligning components,
setting component auto-resizing behavior,
and previewing forms.
Palette
• Pallete contains all components which you can use while making a
GUI application. The Pallete provides you components like
jTextField,jLabel etc. You can design Swing GUIs by dragging GUI
components from a palette onto a canvas.
Design Area
• Design area is where you can drag the components from Pallete and
design the GUI application. In Netbeans you are provided with an
option to toggle between source and Design by clicking in button
provided. For Ex- In this I have designed a GUI using swing
components in jFrame object .
Source Code
• Take a quick look at Source Code View where you can add the code
for components.
Properties
• The Properties edits the property of Swing Components. You can edit
properties very easily using this property editor. You can see it in the
screenshot provided.
Working Area
• Well, it’s the main area of NetBeans IDE. Usually looks like and code
edition area, but it’s also an User Interface visual compositor.
• As an code edition area is the real core of NetBeans IDE. This is really
optimized for code management and it has a lot of improvements
version by version.
Output Area
• If the user starts some action like Run file, Run project, Build project
etc. the system shows the output window. This output window
should have toolbar placed in the edge. On this toolbar should be
placed icons. These icons should allow:
– to repeat the last action
– stop application
– to allow the user to filter the outputs shown in the output window
JFrame
• Now your JFrame is created and now you can add components like
Label, Button, Text Field etc.
• You can see The jFrame is
indicated with red indicator
in Project Folder as well as
in Design view.
Creating a JFrame in
Project
• Just test it by Typing your name and clicking “CLICK ME”. You should
get the text you written in jLabel.