Download - Basic of Java Netbeans
![Page 1: Basic of Java Netbeans](https://reader037.vdocuments.site/reader037/viewer/2022102604/557b0287d8b42a2d178b5084/html5/thumbnails/1.jpg)
Basics of Java Netbeans
Shrey Goswami
![Page 2: Basic of Java Netbeans](https://reader037.vdocuments.site/reader037/viewer/2022102604/557b0287d8b42a2d178b5084/html5/thumbnails/2.jpg)
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](https://reader037.vdocuments.site/reader037/viewer/2022102604/557b0287d8b42a2d178b5084/html5/thumbnails/3.jpg)
Netbeans IDE: layout.
![Page 4: Basic of Java Netbeans](https://reader037.vdocuments.site/reader037/viewer/2022102604/557b0287d8b42a2d178b5084/html5/thumbnails/4.jpg)
The Pallete
![Page 5: Basic of Java Netbeans](https://reader037.vdocuments.site/reader037/viewer/2022102604/557b0287d8b42a2d178b5084/html5/thumbnails/5.jpg)
How Pallete Looks in Netbeans?
![Page 6: Basic of Java Netbeans](https://reader037.vdocuments.site/reader037/viewer/2022102604/557b0287d8b42a2d178b5084/html5/thumbnails/6.jpg)
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](https://reader037.vdocuments.site/reader037/viewer/2022102604/557b0287d8b42a2d178b5084/html5/thumbnails/7.jpg)
The Design Area
![Page 8: Basic of Java Netbeans](https://reader037.vdocuments.site/reader037/viewer/2022102604/557b0287d8b42a2d178b5084/html5/thumbnails/8.jpg)
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](https://reader037.vdocuments.site/reader037/viewer/2022102604/557b0287d8b42a2d178b5084/html5/thumbnails/9.jpg)
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](https://reader037.vdocuments.site/reader037/viewer/2022102604/557b0287d8b42a2d178b5084/html5/thumbnails/10.jpg)
Property Editor
![Page 11: Basic of Java Netbeans](https://reader037.vdocuments.site/reader037/viewer/2022102604/557b0287d8b42a2d178b5084/html5/thumbnails/11.jpg)
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](https://reader037.vdocuments.site/reader037/viewer/2022102604/557b0287d8b42a2d178b5084/html5/thumbnails/12.jpg)
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](https://reader037.vdocuments.site/reader037/viewer/2022102604/557b0287d8b42a2d178b5084/html5/thumbnails/13.jpg)
Thank You