ݺߣ

ݺߣShare a Scribd company logo
1 
Basics of Applet
2 
Objective 
On completion of this period, you will be able 
to learn 
• Basics of applet
3 
Recap 
In the previous classes, we have studied about 
• The various I/O streams and classes 
• How to write console based Java programs or 
applications
4 
Basics of Applets 
• Applets are small Java programs that are used 
in Internet computing 
• Applets 
• Transported over the Internet 
• Automatically installed in client machine 
• Run as part of a web document 
• Applets can be run using a tool ‘appletviewer’
5 
Basics of Applets contd.. 
• Applets interact with the user through the AWT, 
not through the console-based I/O classes 
• Clients download applets via Web browser 
• Browser runs applet in a Java Virtual Machine 
(JVM)
6 
Basics of Applets contd.. 
• Applets can be classified into two types 
• Local applets 
• Remote applets 
• Local applet 
• Developed and stored in local system 
• No need for internet connection for the local system 
• Local directories were searched to locate the 
specified applet
7 
Basics of Applets contd.. 
• Remote applet 
• Developed by someone else 
• Stored on a remote computer connected to the 
internet 
• Our system needs an internet connection 
• The applet is downloaded into our local system via 
internet 
• Run it on our system
8 
Loading of Remote Applet 
Internet 
Local Computer 
(Client) 
Remote Computer 
(Server) 
Remote Applet 
Fig. 53.1 Loading of remote applet 
Applet
9 
Web Browsers Requests Applet 
Client 
Computer 
Fig. 53.2 Request for applet 
1. Browser shows web 
document 
2. Web document contains 
an applet tag 
3. Web browser identifies 
the tag 
4. Client computer makes 
a request to web 
browser via internet 
1, 2 
Browser showing 
web document 
Web Server 
3 
4 4
Web Server Transmits Applet along with HTML 
7 6 5 
10 
5. Web server locates the 
applet 
6. Sends the applet code to 
the web browser 
7. Through internet it is 
downloaded to client 
8. Applet is executed 
4 4 
Fig. 53.3 Applet downloading 
3 
1, 2 
Browser showing 
web document 
Client 
Computer 
5 
8 
HTML, applets etc
11 
Some Points About Applets 
• Applets do not use main() method 
• They run in a browser 
• They cannot read or write the files from the 
local system 
• Applets cannot run any other program from the 
local computer
Some Points About Applets contd.. 
• Applets are restricted from using libraries from 
other languages such as C or C++ 
• They cannot communicate with other servers 
on the local network 
12
13 
Discussion 
• What are the differences between applications and applets ? 
main() method 
Run stand-alone Possible Not possible 
Access local files 
Applications Applets 
Needed Not needed 
Can access 
Cannot access 
Run local programs Can run Cannot run 
Internet connection Needed for Remote 
applet 
GUI based 
Generally not 
needed 
GUI May or may not
14 
Summary 
• Java programs are two types 
• application 
• applet 
• Java applications are the console based 
programs 
• Applets are web enabled internet applications 
• Two types of applets 
• Local applets 
• Remote applets
15 
Quiz 
1. Applets are console based applications 
1. true 
2. false
16 
Quiz contd.. 
2. Internet browser runs Java applets 
1. true 
2. false
17 
3. Java applications are web enabled internet 
applications 
1. true 
2. false 
Quiz contd..
18 
Frequently Asked Questions 
• Explain about Java applets 
• List the differences between applets 
and applications

More Related Content

What's hot (18)

PPTX
Core java
Shubham singh
PDF
Introduction to programming
Michael Dalisay
PPTX
Java Presentation
Marq2014
PPTX
Learn-IT-All Your Own e-Learning Portal
Nimble Esolutions
PPTX
Introduction To AOP
Donald Belcham
PPTX
Lara Technology
laratechnologies
PPT
Where is Joomla Going?
jlleblanc
PPTX
Java selenium web driver
KadarkaraiSelvam
PPTX
Dev days. windows phone development
Volha Banadyseva
PPTX
Introduction of java technology
technologieslara
PPTX
JAVA FEATURES
shalinikarunakaran1
PPTX
Intro To AOP
Donald Belcham
PDF
Joomla 4 - What to expect - Joomla Day UK 2017
George Wilson
PPTX
Writing better code: How the Netbeans IDE Helps you Write, Test and Debug Java
idrsolutions
PPTX
Presentation5
Natasha Bains
PDF
Cloud Computing in Systems Programming Curriculum
Steven Miller
Core java
Shubham singh
Introduction to programming
Michael Dalisay
Java Presentation
Marq2014
Learn-IT-All Your Own e-Learning Portal
Nimble Esolutions
Introduction To AOP
Donald Belcham
Lara Technology
laratechnologies
Where is Joomla Going?
jlleblanc
Java selenium web driver
KadarkaraiSelvam
Dev days. windows phone development
Volha Banadyseva
Introduction of java technology
technologieslara
JAVA FEATURES
shalinikarunakaran1
Intro To AOP
Donald Belcham
Joomla 4 - What to expect - Joomla Day UK 2017
George Wilson
Writing better code: How the Netbeans IDE Helps you Write, Test and Debug Java
idrsolutions
Presentation5
Natasha Bains
Cloud Computing in Systems Programming Curriculum
Steven Miller

Viewers also liked (18)

PPTX
The Death of Privacy in Three Acts
Lilian Edwards
PPTX
Final Project Cultura Inglesa
Brandon Villalobos Martínez
DOCX
Punimiseminarik bankatqendrore-110513164651-phpapp02
emiliosm
PPTX
The death of data protection sans obama
Lilian Edwards
PPTX
Tarea Gerson
gersontaller
PPSX
Back To Basics CEO
Back To Basics Management
PPT
Excelsunum
Cihan Tarıman
PPTX
IT law : the middle kingdom between east and West
Lilian Edwards
PPTX
What do we do with aproblem like revenge porn ?
Lilian Edwards
PPTX
Cdas 2012, lilian edwards and edina harbinja
Lilian Edwards
PPTX
Civil rights movement
Prasoon Gupta
PPTX
The death of data protection
Lilian Edwards
PPTX
Slave to the Algo-Rhythms?
Lilian Edwards
PPT
Night vision technology
Cihan Tarıman
PPTX
Police surveillance of social media - do you have a reasonable expectation of...
Lilian Edwards
PPT
Livescribe smartpen application for educators presentation
gmihalik
PPT
Sejarah tingkatan 2bab1(1)
Noor Syafini Shahidan
PPTX
the Death of Privacy in Three Acts
Lilian Edwards
The Death of Privacy in Three Acts
Lilian Edwards
Final Project Cultura Inglesa
Brandon Villalobos Martínez
Punimiseminarik bankatqendrore-110513164651-phpapp02
emiliosm
The death of data protection sans obama
Lilian Edwards
Tarea Gerson
gersontaller
Back To Basics CEO
Back To Basics Management
Excelsunum
Cihan Tarıman
IT law : the middle kingdom between east and West
Lilian Edwards
What do we do with aproblem like revenge porn ?
Lilian Edwards
Cdas 2012, lilian edwards and edina harbinja
Lilian Edwards
Civil rights movement
Prasoon Gupta
The death of data protection
Lilian Edwards
Slave to the Algo-Rhythms?
Lilian Edwards
Night vision technology
Cihan Tarıman
Police surveillance of social media - do you have a reasonable expectation of...
Lilian Edwards
Livescribe smartpen application for educators presentation
gmihalik
Sejarah tingkatan 2bab1(1)
Noor Syafini Shahidan
the Death of Privacy in Three Acts
Lilian Edwards
Ad

Similar to Basicsofapplets 53-130303003217-phpapp02 (20)

PPT
Basics of applets.53
myrajendra
PPTX
Applet Programming in Advance Java Programming
jayshah562401
PDF
UNIT-1-AJAVA.pdf
PriyanshiPrajapati27
PPTX
JAVA.pptx
MohammedAli997929
PDF
Class notes(week 10) on applet programming
Kuntal Bhowmick
PPT
Applets_Basic Introduction
Charulatha Jain
PPTX
javaapplet.pptx bhhhhjhjhjhjhjhjhjhj
shesnasuneer
PPT
Jsp applet
Sanoj Kumar
PPT
JAVA APPLET BASICS
Shanid Malayil
PDF
Chapter_7_-_EV_-_OOP[1].pdf
zekishamanch
PPTX
MSBTE Computer Engineering Java applet.pptx
kunalgaikwad1705
PPTX
applet.pptx
SachinBhosale73
PPTX
3. applets
AnusAhmad
PDF
Java applets and working principles
DAZZLING DAZZLING
PPTX
Applet intro
Nitin Birari
DOCX
Class notes(week 10) on applet programming
Kuntal Bhowmick
PDF
Advanced programming chapter 2 - Java Applet.pdf
fikadumeuedu
PPTX
Applets3
vinodhinis7
PPTX
Introduction To Applets methods and simple examples
MsPariyalNituLaxman
PPT
Java applets
lopjuan
Basics of applets.53
myrajendra
Applet Programming in Advance Java Programming
jayshah562401
UNIT-1-AJAVA.pdf
PriyanshiPrajapati27
Class notes(week 10) on applet programming
Kuntal Bhowmick
Applets_Basic Introduction
Charulatha Jain
javaapplet.pptx bhhhhjhjhjhjhjhjhjhj
shesnasuneer
Jsp applet
Sanoj Kumar
JAVA APPLET BASICS
Shanid Malayil
Chapter_7_-_EV_-_OOP[1].pdf
zekishamanch
MSBTE Computer Engineering Java applet.pptx
kunalgaikwad1705
applet.pptx
SachinBhosale73
3. applets
AnusAhmad
Java applets and working principles
DAZZLING DAZZLING
Applet intro
Nitin Birari
Class notes(week 10) on applet programming
Kuntal Bhowmick
Advanced programming chapter 2 - Java Applet.pdf
fikadumeuedu
Applets3
vinodhinis7
Introduction To Applets methods and simple examples
MsPariyalNituLaxman
Java applets
lopjuan
Ad

Basicsofapplets 53-130303003217-phpapp02

  • 1. 1 Basics of Applet
  • 2. 2 Objective On completion of this period, you will be able to learn • Basics of applet
  • 3. 3 Recap In the previous classes, we have studied about • The various I/O streams and classes • How to write console based Java programs or applications
  • 4. 4 Basics of Applets • Applets are small Java programs that are used in Internet computing • Applets • Transported over the Internet • Automatically installed in client machine • Run as part of a web document • Applets can be run using a tool ‘appletviewer’
  • 5. 5 Basics of Applets contd.. • Applets interact with the user through the AWT, not through the console-based I/O classes • Clients download applets via Web browser • Browser runs applet in a Java Virtual Machine (JVM)
  • 6. 6 Basics of Applets contd.. • Applets can be classified into two types • Local applets • Remote applets • Local applet • Developed and stored in local system • No need for internet connection for the local system • Local directories were searched to locate the specified applet
  • 7. 7 Basics of Applets contd.. • Remote applet • Developed by someone else • Stored on a remote computer connected to the internet • Our system needs an internet connection • The applet is downloaded into our local system via internet • Run it on our system
  • 8. 8 Loading of Remote Applet Internet Local Computer (Client) Remote Computer (Server) Remote Applet Fig. 53.1 Loading of remote applet Applet
  • 9. 9 Web Browsers Requests Applet Client Computer Fig. 53.2 Request for applet 1. Browser shows web document 2. Web document contains an applet tag 3. Web browser identifies the tag 4. Client computer makes a request to web browser via internet 1, 2 Browser showing web document Web Server 3 4 4
  • 10. Web Server Transmits Applet along with HTML 7 6 5 10 5. Web server locates the applet 6. Sends the applet code to the web browser 7. Through internet it is downloaded to client 8. Applet is executed 4 4 Fig. 53.3 Applet downloading 3 1, 2 Browser showing web document Client Computer 5 8 HTML, applets etc
  • 11. 11 Some Points About Applets • Applets do not use main() method • They run in a browser • They cannot read or write the files from the local system • Applets cannot run any other program from the local computer
  • 12. Some Points About Applets contd.. • Applets are restricted from using libraries from other languages such as C or C++ • They cannot communicate with other servers on the local network 12
  • 13. 13 Discussion • What are the differences between applications and applets ? main() method Run stand-alone Possible Not possible Access local files Applications Applets Needed Not needed Can access Cannot access Run local programs Can run Cannot run Internet connection Needed for Remote applet GUI based Generally not needed GUI May or may not
  • 14. 14 Summary • Java programs are two types • application • applet • Java applications are the console based programs • Applets are web enabled internet applications • Two types of applets • Local applets • Remote applets
  • 15. 15 Quiz 1. Applets are console based applications 1. true 2. false
  • 16. 16 Quiz contd.. 2. Internet browser runs Java applets 1. true 2. false
  • 17. 17 3. Java applications are web enabled internet applications 1. true 2. false Quiz contd..
  • 18. 18 Frequently Asked Questions • Explain about Java applets • List the differences between applets and applications