Basic of Java Netbeans

13
Basics of Java Netbeans Shrey Goswami

description

Basics of Java Netbeans. You will be introduced to the features of Netbeans IDE and swing components.

Transcript of Basic of Java Netbeans

Page 1: Basic of Java Netbeans

Basics of Java Netbeans

Shrey Goswami

Page 2: Basic of Java Netbeans

In this presentation you will learn how to use coponents offer by Swing API in Java Netbeans.

You will also be introduced by some basic things like Pallete, Design Area, the Property Editor, and the Inspector which are very useful to know.

Introduction

Page 3: Basic of Java Netbeans

Netbeans IDE: layout.

Page 4: Basic of Java Netbeans

The Pallete

Page 5: Basic of Java Netbeans

How Pallete Looks in Netbeans?

Page 6: Basic of Java Netbeans

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. 

The Pallete

Page 7: Basic of Java Netbeans

The Design Area

Page 8: Basic of Java Netbeans

The Design Area: Design View

The 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 .

Page 9: Basic of Java Netbeans

The Design Area: Source View

Take a quick look at Source View where you can add the code for components.

Page 10: Basic of Java Netbeans

Property Editor

Page 11: Basic of Java Netbeans

Property EditorThe Property Edior edits the property of Swing Components.

You can edit properties very easily using this property editor. You can see it in the screenshot provided.

Page 12: Basic of Java Netbeans

jLabel – it is a label used to display a single line text in application. jTextField- It is used to take a input from user in a application. jTextArea – It is used to display multi line text, it also supports line

wrap. We can make it editable or non editable by changing property. jCheckbox-A checkbox is a labeled toggle switch. Each time the user

clicks it, its state toggles between checked and unchecked. Swing implements the checkbox as a special kind of button.

JRadioButton-Radio buttons are similar to checkboxes, but they are usually arranged in groups. Click on one radio button in the group, and the others automatically turn off. They are named for the preset buttons on old car radios.

jList- It is a list of items from which selections can be made. Multiple elements can also be selected at a time.

jComboBox- It provides a dropdown list of items. New Items can be added to it.

Useful Swing Components.

Page 13: Basic of Java Netbeans

Thank You