SlideShare a Scribd company logo
2
Most read
8
Most read
19
Most read
Shrey Goswami


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

Install JAVA JDK.
Install Netbeans IDE.
Introduction to java netbeans
Introduction to java netbeans


Navigate to File>New Project.
Select java in categories and java Applications
in projects.



Give project name and uncheck create main
class and click Finish.




You can finally see Your Project in Projects.
In next step, we will create jFrame in it.
Introduction to java netbeans




A jFrame Form acts as a container to place other components
like the button,text field and text area etc.
We can create as many forms we want in a Netbeans Project.

A jFrame containing jLabel,
jTextField and jButton.


To Create a new jFrame click project name in projects and
right click>New>jframe Form..


To Create a new jFrame click project name in projects and
right click>New>jframe Form.. And then dialog will open
where you have to give name and click on Finish.




Now your jFrame is created and now you can add components
like Label,Button,TextField etc.
You can see The jFrame is indicated with red indicator in
Project Folder as well as in Design view.




Now you can add swing components from Palette by draging
on to the design view and arranging according to your idea.
The Palette is indicated with red border.



Now I have added jlabel,jTextField and Button to the jFrame.
The jTextField is indicated with Red indicator,jButton with
Blue and jlabel with brown indicator.




As we have now added the components we can edit the
variable name,text of the components by just selecting them
in the jFrame and right click.
As you can see we can edit the text,change variable
name,properties and so on.






Now as a example we can make a application where user will enter the name
in jTextField and will get the name back in jLabel after clicking on the
jButton.
To achieve it we have already designed the layout but have to add
functionality by adding code in the jButton as all the task will be done after
clicking the button.
To add Code double click on button and you will be switched automatically
to Source Code.


Adding the Following code written in Red Block.









Before you complete, check the component names as it may be different in
your and my case.
In My Case: jLabel1,jTextField1.
You can change the component name by going to Design and selecting
component then right click and navigate to change variable name.
Now its done, and you can run it by holding Shift key and F6 together.
Wait and the Application will run like the screenshot below.
Just test it by Typing your name and clicking “CLICK ME”. You should get the
text you written in jLabel.


Thats All done from the Introduction. In Next Slide you will learn about
different Components of Java like jLabel,jTextField etc that we used in this
example.

THANK YOU

More Related Content

PPTX
GUI components in Java
PPT
Swing and AWT in java
PPT
Java layoutmanager
PPT
java swing
PDF
Basic i/o & file handling in java
PPTX
Chapter 1 swings
PPTX
JAVA ENVIRONMENT
GUI components in Java
Swing and AWT in java
Java layoutmanager
java swing
Basic i/o & file handling in java
Chapter 1 swings
JAVA ENVIRONMENT

What's hot (20)

PPTX
Introduction to php
PPT
ASP.NET MVC Presentation
PPTX
Servlets
PPTX
Html5 and-css3-overview
PPTX
Introduction to CSS
PPT
Oops concepts in php
PPTX
React js programming concept
PPTX
Difference between-web-designing-and-web-development
PPT
Introduction to CSS
PPTX
Presentation on "An Introduction to ReactJS"
PDF
jQuery for beginners
PDF
Html,javascript & css
PDF
Javascript basics
PPTX
React-JS.pptx
ODP
Introduction of Html/css/js
PPT
Introduction to Cascading Style Sheets (CSS)
PDF
Basics of JavaScript
PPT
Web development | Derin Dolen
PDF
Bootstrap
Introduction to php
ASP.NET MVC Presentation
Servlets
Html5 and-css3-overview
Introduction to CSS
Oops concepts in php
React js programming concept
Difference between-web-designing-and-web-development
Introduction to CSS
Presentation on "An Introduction to ReactJS"
jQuery for beginners
Html,javascript & css
Javascript basics
React-JS.pptx
Introduction of Html/css/js
Introduction to Cascading Style Sheets (CSS)
Basics of JavaScript
Web development | Derin Dolen
Bootstrap
Ad

Viewers also liked (20)

PPSX
Basic of Java Netbeans
PPT
Netbeans IDE & Platform
PPT
GUI Programming In Java
PDF
Introduction To NetBeans IDE
PDF
Netbeans gui tutorial
PPTX
GUI Programming in JAVA (Using Netbeans) - A Review
PDF
CBSE XII Communication And Network Concepts
PPT
BASIC CONCEPTS OF COMPUTER NETWORKS
PDF
Notes netbeans
PPTX
Web Application and HTML Summary
PPT
Simple Unit Testing With Netbeans 6.1
PPTX
Eclipse Vs Netbeans
PPTX
GUI programming
PPTX
Developing Java EE applications with NetBeans and Payara
ODP
Eclipse
PPT
12 installing eclipse
PDF
Screenshot of Desktop System Application Complete
PDF
Top Java IDE keyboard shortcuts for Eclipse, IntelliJIDEA, NetBeans (report p...
PPT
Java swings
PPT
A Short Java RMI Tutorial
Basic of Java Netbeans
Netbeans IDE & Platform
GUI Programming In Java
Introduction To NetBeans IDE
Netbeans gui tutorial
GUI Programming in JAVA (Using Netbeans) - A Review
CBSE XII Communication And Network Concepts
BASIC CONCEPTS OF COMPUTER NETWORKS
Notes netbeans
Web Application and HTML Summary
Simple Unit Testing With Netbeans 6.1
Eclipse Vs Netbeans
GUI programming
Developing Java EE applications with NetBeans and Payara
Eclipse
12 installing eclipse
Screenshot of Desktop System Application Complete
Top Java IDE keyboard shortcuts for Eclipse, IntelliJIDEA, NetBeans (report p...
Java swings
A Short Java RMI Tutorial
Ad

Similar to Introduction to java netbeans (20)

PPTX
Gui programming a review - mixed content
PDF
Swingpre 150616004959-lva1-app6892
PPTX
Chap 1 - Introduction GUI.pptx
PPT
L11cs2110sp13
PPTX
AWT stands for Abstract Window Toolkit. AWT is collection of classes and int...
PPT
14a-gui.ppt
PPTX
PDF
PraveenKumar A T AWS
PDF
GUI.pdf
PPTX
chapter 3 GUI Netbean graphic user .pptx
PDF
Getting started with GUI programming in Java_1
PPT
Graphical User Interface (GUI) - 1
PDF
PPT
Java_gui_with_AWT_and_its_components.ppt
PDF
Session 9_AWT in java with all demonstrations.pdf
PDF
AWT (Abstract Window Toolkit) Controls.pdf
PPT
Chap1 1 1
PPT
Chap1 1.1
PPTX
Creating GUI.pptx Gui graphical user interface
PDF
Java GUI Programming for beginners-graphics.pdf
Gui programming a review - mixed content
Swingpre 150616004959-lva1-app6892
Chap 1 - Introduction GUI.pptx
L11cs2110sp13
AWT stands for Abstract Window Toolkit. AWT is collection of classes and int...
14a-gui.ppt
PraveenKumar A T AWS
GUI.pdf
chapter 3 GUI Netbean graphic user .pptx
Getting started with GUI programming in Java_1
Graphical User Interface (GUI) - 1
Java_gui_with_AWT_and_its_components.ppt
Session 9_AWT in java with all demonstrations.pdf
AWT (Abstract Window Toolkit) Controls.pdf
Chap1 1 1
Chap1 1.1
Creating GUI.pptx Gui graphical user interface
Java GUI Programming for beginners-graphics.pdf

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
KodekX | Application Modernization Development
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Modernizing your data center with Dell and AMD
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation theory and applications.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Approach and Philosophy of On baking technology
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
A Presentation on Artificial Intelligence
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Electronic commerce courselecture one. Pdf
20250228 LYD VKU AI Blended-Learning.pptx
KodekX | Application Modernization Development
Review of recent advances in non-invasive hemoglobin estimation
Modernizing your data center with Dell and AMD
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Reach Out and Touch Someone: Haptics and Empathic Computing
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation theory and applications.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Spectral efficient network and resource selection model in 5G networks
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Approach and Philosophy of On baking technology
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
A Presentation on Artificial Intelligence
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Building Integrated photovoltaic BIPV_UPV.pdf

Introduction to java netbeans

  • 2.  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.
  • 7. Select java in categories and java Applications in projects. 
  • 8.  Give project name and uncheck create main class and click Finish.
  • 9.   You can finally see Your Project in Projects. In next step, we will create jFrame in it.
  • 11.   A jFrame Form acts as a container to place other components like the button,text field and text area etc. We can create as many forms we want in a Netbeans Project. A jFrame containing jLabel, jTextField and jButton.
  • 12.  To Create a new jFrame click project name in projects and right click>New>jframe Form..
  • 13.  To Create a new jFrame click project name in projects and right click>New>jframe Form.. And then dialog will open where you have to give name and click on Finish.
  • 14.   Now your jFrame is created and now you can add components like Label,Button,TextField etc. You can see The jFrame is indicated with red indicator in Project Folder as well as in Design view.
  • 15.   Now you can add swing components from Palette by draging on to the design view and arranging according to your idea. The Palette is indicated with red border.
  • 16.   Now I have added jlabel,jTextField and Button to the jFrame. The jTextField is indicated with Red indicator,jButton with Blue and jlabel with brown indicator.
  • 17.   As we have now added the components we can edit the variable name,text of the components by just selecting them in the jFrame and right click. As you can see we can edit the text,change variable name,properties and so on.
  • 18.    Now as a example we can make a application where user will enter the name in jTextField and will get the name back in jLabel after clicking on the jButton. To achieve it we have already designed the layout but have to add functionality by adding code in the jButton as all the task will be done after clicking the button. To add Code double click on button and you will be switched automatically to Source Code.
  • 19.  Adding the Following code written in Red Block.
  • 20.       Before you complete, check the component names as it may be different in your and my case. In My Case: jLabel1,jTextField1. You can change the component name by going to Design and selecting component then right click and navigate to change variable name. Now its done, and you can run it by holding Shift key and F6 together. Wait and the Application will run like the screenshot below. Just test it by Typing your name and clicking “CLICK ME”. You should get the text you written in jLabel.
  • 21.  Thats All done from the Introduction. In Next Slide you will learn about different Components of Java like jLabel,jTextField etc that we used in this example. THANK YOU