SlideShare a Scribd company logo
1 of 21
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.


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



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

What's hot

Graphical User Interface (GUI) - 1
Graphical User Interface (GUI) - 1Graphical User Interface (GUI) - 1
Graphical User Interface (GUI) - 1
PRN USM
 

What's hot (20)

JavaScript - An Introduction
JavaScript - An IntroductionJavaScript - An Introduction
JavaScript - An Introduction
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
Angular tutorial
Angular tutorialAngular tutorial
Angular tutorial
 
Angular js PPT
Angular js PPTAngular js PPT
Angular js PPT
 
Javascript basics
Javascript basicsJavascript basics
Javascript basics
 
Introduction to angular with a simple but complete project
Introduction to angular with a simple but complete projectIntroduction to angular with a simple but complete project
Introduction to angular with a simple but complete project
 
Graphical User Interface (GUI) - 1
Graphical User Interface (GUI) - 1Graphical User Interface (GUI) - 1
Graphical User Interface (GUI) - 1
 
Visual studio
Visual studioVisual studio
Visual studio
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Learn react-js
Learn react-jsLearn react-js
Learn react-js
 
Laravel ppt
Laravel pptLaravel ppt
Laravel ppt
 
Vb.net ide
Vb.net ideVb.net ide
Vb.net ide
 
Introduction to Angularjs
Introduction to AngularjsIntroduction to Angularjs
Introduction to Angularjs
 
JavaScript - Chapter 15 - Debugging Techniques
 JavaScript - Chapter 15 - Debugging Techniques JavaScript - Chapter 15 - Debugging Techniques
JavaScript - Chapter 15 - Debugging Techniques
 
Java script
Java scriptJava script
Java script
 
Basic Java Programming
Basic Java ProgrammingBasic Java Programming
Basic Java Programming
 
JavaScript - Chapter 12 - Document Object Model
  JavaScript - Chapter 12 - Document Object Model  JavaScript - Chapter 12 - Document Object Model
JavaScript - Chapter 12 - Document Object Model
 
Introduction to React JS
Introduction to React JSIntroduction to React JS
Introduction to React JS
 
Introduction to web programming with JavaScript
Introduction to web programming with JavaScriptIntroduction to web programming with JavaScript
Introduction to web programming with JavaScript
 
Android Threading
Android ThreadingAndroid Threading
Android Threading
 

Viewers also liked

BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS
Kak Yong
 
Screenshot of Desktop System Application Complete
Screenshot of Desktop System Application CompleteScreenshot of Desktop System Application Complete
Screenshot of Desktop System Application Complete
Hendrawan Hendrawan
 
Top Java IDE keyboard shortcuts for Eclipse, IntelliJIDEA, NetBeans (report p...
Top Java IDE keyboard shortcuts for Eclipse, IntelliJIDEA, NetBeans (report p...Top Java IDE keyboard shortcuts for Eclipse, IntelliJIDEA, NetBeans (report p...
Top Java IDE keyboard shortcuts for Eclipse, IntelliJIDEA, NetBeans (report p...
ZeroTurnaround
 
A Short Java RMI Tutorial
A Short Java RMI TutorialA Short Java RMI Tutorial
A Short Java RMI Tutorial
Guo Albert
 

Viewers also liked (20)

Basic of Java Netbeans
Basic of Java NetbeansBasic of Java Netbeans
Basic of Java Netbeans
 
Netbeans IDE & Platform
Netbeans IDE & PlatformNetbeans IDE & Platform
Netbeans IDE & Platform
 
GUI Programming In Java
GUI Programming In JavaGUI Programming In Java
GUI Programming In Java
 
Introduction To NetBeans IDE
Introduction To NetBeans IDEIntroduction To NetBeans IDE
Introduction To NetBeans IDE
 
Netbeans gui tutorial
Netbeans gui tutorialNetbeans gui tutorial
Netbeans gui tutorial
 
CBSE XII Communication And Network Concepts
CBSE XII Communication And Network ConceptsCBSE XII Communication And Network Concepts
CBSE XII Communication And Network Concepts
 
BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS
 
Notes netbeans
Notes netbeansNotes netbeans
Notes netbeans
 
Web Application and HTML Summary
Web Application and HTML SummaryWeb Application and HTML Summary
Web Application and HTML Summary
 
Simple Unit Testing With Netbeans 6.1
Simple Unit Testing With Netbeans 6.1Simple Unit Testing With Netbeans 6.1
Simple Unit Testing With Netbeans 6.1
 
Eclipse Vs Netbeans
Eclipse Vs NetbeansEclipse Vs Netbeans
Eclipse Vs Netbeans
 
GUI programming
GUI programmingGUI programming
GUI programming
 
Developing Java EE applications with NetBeans and Payara
Developing Java EE applications with NetBeans and PayaraDeveloping Java EE applications with NetBeans and Payara
Developing Java EE applications with NetBeans and Payara
 
Eclipse
EclipseEclipse
Eclipse
 
12 installing eclipse
12   installing eclipse12   installing eclipse
12 installing eclipse
 
Screenshot of Desktop System Application Complete
Screenshot of Desktop System Application CompleteScreenshot of Desktop System Application Complete
Screenshot of Desktop System Application Complete
 
Top Java IDE keyboard shortcuts for Eclipse, IntelliJIDEA, NetBeans (report p...
Top Java IDE keyboard shortcuts for Eclipse, IntelliJIDEA, NetBeans (report p...Top Java IDE keyboard shortcuts for Eclipse, IntelliJIDEA, NetBeans (report p...
Top Java IDE keyboard shortcuts for Eclipse, IntelliJIDEA, NetBeans (report p...
 
Java swings
Java swingsJava swings
Java swings
 
A Short Java RMI Tutorial
A Short Java RMI TutorialA Short Java RMI Tutorial
A Short Java RMI Tutorial
 
Computer hardware servicing tools
Computer hardware servicing toolsComputer hardware servicing tools
Computer hardware servicing tools
 

Similar to Introduction to java netbeans

Gui builder
Gui builderGui builder
Gui builder
learnt
 
Android tutorials7 calculator
Android tutorials7 calculatorAndroid tutorials7 calculator
Android tutorials7 calculator
Vlad Kolesnyk
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
EliasPetros
 
Create yourfirstandroidapppdf
Create yourfirstandroidapppdfCreate yourfirstandroidapppdf
Create yourfirstandroidapppdf
murad3003
 
Cis407 a ilab 2 web application development devry university
Cis407 a ilab 2 web application development devry universityCis407 a ilab 2 web application development devry university
Cis407 a ilab 2 web application development devry university
lhkslkdh89009
 
Introducing small basic
Introducing small basicIntroducing small basic
Introducing small basic
An I
 

Similar to Introduction to java netbeans (20)

Gui builder
Gui builderGui builder
Gui builder
 
Android tutorials7 calculator
Android tutorials7 calculatorAndroid tutorials7 calculator
Android tutorials7 calculator
 
Ios actions and outlets
Ios actions and outletsIos actions and outlets
Ios actions and outlets
 
Ios actions and outlets
Ios actions and outletsIos actions and outlets
Ios actions and outlets
 
Lab1
Lab1Lab1
Lab1
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
 
MAD mobile application development you can learn from here , we perform all c...
MAD mobile application development you can learn from here , we perform all c...MAD mobile application development you can learn from here , we perform all c...
MAD mobile application development you can learn from here , we perform all c...
 
Create yourfirstandroidapppdf
Create yourfirstandroidapppdfCreate yourfirstandroidapppdf
Create yourfirstandroidapppdf
 
Gui programming a review - mixed content
Gui programming   a review - mixed contentGui programming   a review - mixed content
Gui programming a review - mixed content
 
Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6
 
Visual C# 2010
Visual C# 2010Visual C# 2010
Visual C# 2010
 
Membangun Desktop App
Membangun Desktop AppMembangun Desktop App
Membangun Desktop App
 
Create New Android Layout
Create New Android LayoutCreate New Android Layout
Create New Android Layout
 
Cis407 a ilab 2 web application development devry university
Cis407 a ilab 2 web application development devry universityCis407 a ilab 2 web application development devry university
Cis407 a ilab 2 web application development devry university
 
Chapter - 6.pptx
Chapter - 6.pptxChapter - 6.pptx
Chapter - 6.pptx
 
Introducing small basic
Introducing small basicIntroducing small basic
Introducing small basic
 
Part1
Part1Part1
Part1
 
Dojo tutorial
Dojo tutorialDojo tutorial
Dojo tutorial
 
Vb.net and .Net Framework
Vb.net and .Net FrameworkVb.net and .Net Framework
Vb.net and .Net Framework
 

Recently uploaded

Recently uploaded (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.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.
  • 4.
  • 5.
  • 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.
  • 10.
  • 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