You are on page 1of 14

Main Components of Java

Netbeans IDE
Components
1.Title bar
2.Menu bar and pull-down menus
3.Toolbar
4.GUI building
5.Palette
Component 1: Title Bar 

• It displays the title of the application. Netbeans will give names as


JavaApplication1, JavaApplication2,………..etc., to your project,
random arbitrary is pictorially shown below
Component 2: Menu Bar and Pulldown
Menus

The environment if working is the same as that of familiar with menu
bars as you have worked with MS – Windows operating system. A
menu bar is displayed directly below that title bar and includes a lot of
options. Each option on the menu bar has a drop–down list of items
(known as Pull-down menus) that help you perform various tasks.
Component 3: Tool Bar

A toolbar is a bar that displays icons for commonly used tasks. The
standard Toolbar of Netbeans IDE displays icons for the most
frequently used commands in NetBeans.
Component 4: GUI Building

Also called Design Area or Design Space. The Design Area is where
you will visually construct your GUI. It is the primary workspace
within which GUI design takes place in the IDE. The GUI Builder
enables you to layout forms by placing components where you want
them and by providing visual feedback in the form of guidelines. It
has 2 views : source View and Design View. Design View is the
default, as shown above. The Source View opens the code editor for
you where you can add/edit the code for your application. You can
toggle between views at any time by clicking their respective tabs
Component 5: The Palette

The palette contains all the components needed to create GUI
applications. Before discussing Palette, let us talk about
windows/frame and controls.
• 5(a) Frames
• A–Frame is a window that typically has decorations such as a border, a
title, and buttons for closing and iconifying itself. A GUI application
typically uses at least one frame. Frames are used to display things like
labels, Text Fields, Buttons, and other Controls
• 5(b) Controls
• Controls are component objects such as text Fields, labels list boxes,
etc., that are drawn on the frame to get data input or to display output.
After introducing frames and controls, let us now talk about Palette As
you can see in the figure below that a Palette displays a set of
component tools that may be used to place controls on a frame.
5(d) Property window

• This window displays the editable settings for the currently selected
component. The figure on your right shows the property Editor for  a
JFrame object.
• 5(e) Code Editor window
• The code editor window is where you write Java code for your
application. By code, we mean language statements, constants, and
declarations. The Code Editor window servers as an editor for entering
application code. A separate code editor window is created for each
top-level frame that you create in your application. Using the code
Editor Window, you can quickly view and edit any of the codes in
your application.

You might also like