SlideShare a Scribd company logo
Java Applet Programming
Rohan K. Gajre.
Outline
• Introduction to java Programming
• Applet Overview
• Applet Skeleton
• Steps to Write Applet Code
• Compilation Process
• Java Applet E.g. with HTML Code
What is Java
• Java is Simplified version of C++
• Java is a programming language that is object Oriented and specifically
designed to have as few implementation dependencies as possible
• Java Programs can be easily moved form one computer to another
• Almost everything in Java is an Object and Classes
• Java has the ability to share both data and program
• Java does not use pointer and header files
• A class is collection of Object of similar type
What is Applet
• Applet are Java Program that are used for Internet Computing
• Applet can be transported over the internet from one computer to
another
• It can perform logical and arithmetic operations as well as accept user
input
• Applet are event driven
• If you want to write applet code so you need to import two packages
that is awt(Abstract Window Toolkit) and applet
Cont.
• Execution of applet code does not begin with main()function
• Types of Applet
Local Applet :- Developed & stored in Local System
Remote Applet :- Developed & stored on a Remote computer
connected to the internet
• Once an applet has been compiled, it is included in an HTML file
using Applet tag
Cont.
• Applets are not executed by a console based java run-time interpreter,
but they are executed by either a java enabled web browser or an
applet viewer.
• You need two notepad one for java(Applet)code and another for
HTML code having Applet Tag in that
An Applet Skeleton
• Applet skeleton includes different methods for writing applet
• When an applet begins, the AWT calls the following methods, in this
sequence:
init( )
start( )
paint( )
• When an applet is terminated, the following sequence of method calls
takes place:
Cont.
• stop( )
• destroy( )
• Above all methods are in Applet Life cycle
• Explanation about above is as follows:
• init( ):- init() is the first method to be called. This is where you should
initialize variables. This method is called only once during run time of
your applet
Cont.
• start( ):- start() called after init(), also called to restart applet after it
has been stopped. start() is called each time an applet’s HTML
document is displayed on screen.
• paint( ):- paint() is called each time your applets output must be
redrawn. also called when the applet begins execution. This method
has one parameter, Graphics.
• stop( ):- stop()is called when a web browser leaves the HTML
document containing the applet- when it goes to another page.
Cont.
• destroy( ) :- destroy() is called when environment determines that
your applet needs to be removed completely from memory. The stop()
method is always called before destroy().
Steps to write Applet code
• Writing an applet code in java file & save with class name (.java file)
• Compile it & create (.class file)
• Design a page using HTML tags
• Write a <APPLET> Tag in that
• Save it same as a class name with .HTML extension
• Testing
Compilation Process
• Open command prompt then go to directory using CD command
• E.g. c:Users>d:
• I am in D Drive now going to my directory using CD command
• D:> cd Ram
• I am in my directory that is Ram
• Compile source file D:Ram> Javac Classname.java
• E.g. D:Ram> Javac Demo.java
Cont.
• Open file in appletviewer
• Then Run HTML code
• D:Ram> appletviewer classname.html
• E.g. D:Ram> appletviewer Demo.html
Following Program shows a simple java
applet
import java.applet.*;
import java.awt.*;
public class DemoApp extends Applet{
public void paint (Graphics g) {
g.drawString (“Welcome in Applet World", 25, 50);
}
}
Cont.
• Save source file with name DemoApp.java
• Compile source file D:Ram> javac DemoApp.java
• Write HTML File and save it DemoApp.html
HTML Code
<html>
<title> Welcome in Applet World </title>
<hr>
<applet code=“DemoApp.class" width="320" height="120">
</applet>
</hr>
</html>
Cont.
• Open file in appletviewer
• Then Run HTML code
• D:Ram> appletviewer DemoApp.html
Java applet
Ad

More Related Content

What's hot (20)

Exception handling
Exception handlingException handling
Exception handling
PhD Research Scholar
 
Java interfaces
Java interfacesJava interfaces
Java interfaces
Raja Sekhar
 
input/ output in java
input/ output  in javainput/ output  in java
input/ output in java
sharma230399
 
Applets
AppletsApplets
Applets
Prabhakaran V M
 
Object Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaionObject Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaion
Pritom Chaki
 
OOP java
OOP javaOOP java
OOP java
xball977
 
Constructor in java
Constructor in javaConstructor in java
Constructor in java
Pavith Gunasekara
 
Java Basic Oops Concept
Java Basic Oops ConceptJava Basic Oops Concept
Java Basic Oops Concept
atozknowledge .com
 
Java I/O
Java I/OJava I/O
Java I/O
Jussi Pohjolainen
 
Class and Objects in Java
Class and Objects in JavaClass and Objects in Java
Class and Objects in Java
Spotle.ai
 
Applet life cycle
Applet life cycleApplet life cycle
Applet life cycle
myrajendra
 
Java-java virtual machine
Java-java virtual machineJava-java virtual machine
Java-java virtual machine
Surbhi Panhalkar
 
Java Server Pages(jsp)
Java Server Pages(jsp)Java Server Pages(jsp)
Java Server Pages(jsp)
Manisha Keim
 
Java Data Types
Java Data TypesJava Data Types
Java Data Types
Spotle.ai
 
Java applets
Java appletsJava applets
Java applets
Pihu Goel
 
JAVA FEATURES
JAVA FEATURESJAVA FEATURES
JAVA FEATURES
shalinikarunakaran1
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
Tanzeela_Hussain
 
Android activity lifecycle
Android activity lifecycleAndroid activity lifecycle
Android activity lifecycle
Soham Patel
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
slire
 
core java
core javacore java
core java
Roushan Sinha
 

Similar to Java applet (20)

Applet.pptx
Applet.pptxApplet.pptx
Applet.pptx
LakachewYezihalem
 
Introduction To Applets methods and simple examples
Introduction To Applets methods  and simple examplesIntroduction To Applets methods  and simple examples
Introduction To Applets methods and simple examples
MsPariyalNituLaxman
 
applet.pptx
applet.pptxapplet.pptx
applet.pptx
SachinBhosale73
 
Applets
AppletsApplets
Applets
Nuha Noor
 
MSBTE Computer Engineering Java applet.pptx
MSBTE Computer Engineering Java applet.pptxMSBTE Computer Engineering Java applet.pptx
MSBTE Computer Engineering Java applet.pptx
kunalgaikwad1705
 
27 applet programming
27  applet programming27  applet programming
27 applet programming
Ravindra Rathore
 
Java Apple dndkorksnsbsjdkkdjejdjrdndjdj
Java Apple dndkorksnsbsjdkkdjejdjrdndjdjJava Apple dndkorksnsbsjdkkdjejdjrdndjdj
Java Apple dndkorksnsbsjdkkdjejdjrdndjdj
midhunmsd143
 
Java programming Java programming Java programming
Java programming Java programming Java programmingJava programming Java programming Java programming
Java programming Java programming Java programming
Fadlie Ahdon
 
Jsp applet
Jsp appletJsp applet
Jsp applet
Sanoj Kumar
 
JAVA APPLET BASICS
JAVA APPLET BASICSJAVA APPLET BASICS
JAVA APPLET BASICS
Shanid Malayil
 
Java basics notes
Java basics notesJava basics notes
Java basics notes
sanchi Sharma
 
Java programming basics notes for beginners(java programming tutorials)
Java programming basics notes for beginners(java programming tutorials)Java programming basics notes for beginners(java programming tutorials)
Java programming basics notes for beginners(java programming tutorials)
Daroko blog(www.professionalbloggertricks.com)
 
Java basics notes
Java basics notesJava basics notes
Java basics notes
Nexus
 
Java basics notes
Java basics notesJava basics notes
Java basics notes
Gomathi Gomu
 
Java applet
Java appletJava applet
Java applet
Elizabeth alexander
 
Applets 101-fa06
Applets 101-fa06Applets 101-fa06
Applets 101-fa06
nrayan
 
PROGRAMMING IN JAVA- unit 4-part I
PROGRAMMING IN JAVA- unit 4-part IPROGRAMMING IN JAVA- unit 4-part I
PROGRAMMING IN JAVA- unit 4-part I
SivaSankari36
 
Applet and graphics programming
Applet and graphics programmingApplet and graphics programming
Applet and graphics programming
mcanotes
 
javaapplet.pptx bhhhhjhjhjhjhjhjhjhj
javaapplet.pptx        bhhhhjhjhjhjhjhjhjhjjavaapplet.pptx        bhhhhjhjhjhjhjhjhjhj
javaapplet.pptx bhhhhjhjhjhjhjhjhjhj
shesnasuneer
 
Java files and io streams
Java files and io streamsJava files and io streams
Java files and io streams
RubaNagarajan
 
Introduction To Applets methods and simple examples
Introduction To Applets methods  and simple examplesIntroduction To Applets methods  and simple examples
Introduction To Applets methods and simple examples
MsPariyalNituLaxman
 
MSBTE Computer Engineering Java applet.pptx
MSBTE Computer Engineering Java applet.pptxMSBTE Computer Engineering Java applet.pptx
MSBTE Computer Engineering Java applet.pptx
kunalgaikwad1705
 
Java Apple dndkorksnsbsjdkkdjejdjrdndjdj
Java Apple dndkorksnsbsjdkkdjejdjrdndjdjJava Apple dndkorksnsbsjdkkdjejdjrdndjdj
Java Apple dndkorksnsbsjdkkdjejdjrdndjdj
midhunmsd143
 
Java programming Java programming Java programming
Java programming Java programming Java programmingJava programming Java programming Java programming
Java programming Java programming Java programming
Fadlie Ahdon
 
Java basics notes
Java basics notesJava basics notes
Java basics notes
Nexus
 
Applets 101-fa06
Applets 101-fa06Applets 101-fa06
Applets 101-fa06
nrayan
 
PROGRAMMING IN JAVA- unit 4-part I
PROGRAMMING IN JAVA- unit 4-part IPROGRAMMING IN JAVA- unit 4-part I
PROGRAMMING IN JAVA- unit 4-part I
SivaSankari36
 
Applet and graphics programming
Applet and graphics programmingApplet and graphics programming
Applet and graphics programming
mcanotes
 
javaapplet.pptx bhhhhjhjhjhjhjhjhjhj
javaapplet.pptx        bhhhhjhjhjhjhjhjhjhjjavaapplet.pptx        bhhhhjhjhjhjhjhjhjhj
javaapplet.pptx bhhhhjhjhjhjhjhjhjhj
shesnasuneer
 
Java files and io streams
Java files and io streamsJava files and io streams
Java files and io streams
RubaNagarajan
 
Ad

Recently uploaded (20)

Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World ExamplesMastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
jamescantor38
 
Why Tapitag Ranks Among the Best Digital Business Card Providers
Why Tapitag Ranks Among the Best Digital Business Card ProvidersWhy Tapitag Ranks Among the Best Digital Business Card Providers
Why Tapitag Ranks Among the Best Digital Business Card Providers
Tapitag
 
Troubleshooting JVM Outages – 3 Fortune 500 case studies
Troubleshooting JVM Outages – 3 Fortune 500 case studiesTroubleshooting JVM Outages – 3 Fortune 500 case studies
Troubleshooting JVM Outages – 3 Fortune 500 case studies
Tier1 app
 
[gbgcpp] Let's get comfortable with concepts
[gbgcpp] Let's get comfortable with concepts[gbgcpp] Let's get comfortable with concepts
[gbgcpp] Let's get comfortable with concepts
Dimitrios Platis
 
!%& IDM Crack with Internet Download Manager 6.42 Build 32 >
!%& IDM Crack with Internet Download Manager 6.42 Build 32 >!%& IDM Crack with Internet Download Manager 6.42 Build 32 >
!%& IDM Crack with Internet Download Manager 6.42 Build 32 >
Ranking Google
 
Passive House Canada Conference 2025 Presentation [Final]_v4.ppt
Passive House Canada Conference 2025 Presentation [Final]_v4.pptPassive House Canada Conference 2025 Presentation [Final]_v4.ppt
Passive House Canada Conference 2025 Presentation [Final]_v4.ppt
IES VE
 
sequencediagrams.pptx software Engineering
sequencediagrams.pptx software Engineeringsequencediagrams.pptx software Engineering
sequencediagrams.pptx software Engineering
aashrithakondapalli8
 
Reinventing Microservices Efficiency and Innovation with Single-Runtime
Reinventing Microservices Efficiency and Innovation with Single-RuntimeReinventing Microservices Efficiency and Innovation with Single-Runtime
Reinventing Microservices Efficiency and Innovation with Single-Runtime
Natan Silnitsky
 
Adobe Audition Crack FRESH Version 2025 FREE
Adobe Audition Crack FRESH Version 2025 FREEAdobe Audition Crack FRESH Version 2025 FREE
Adobe Audition Crack FRESH Version 2025 FREE
zafranwaqar90
 
Digital Twins Software Service in Belfast
Digital Twins Software Service in BelfastDigital Twins Software Service in Belfast
Digital Twins Software Service in Belfast
julia smits
 
From Vibe Coding to Vibe Testing - Complete PowerPoint Presentation
From Vibe Coding to Vibe Testing - Complete PowerPoint PresentationFrom Vibe Coding to Vibe Testing - Complete PowerPoint Presentation
From Vibe Coding to Vibe Testing - Complete PowerPoint Presentation
Shay Ginsbourg
 
Artificial hand using embedded system.pptx
Artificial hand using embedded system.pptxArtificial hand using embedded system.pptx
Artificial hand using embedded system.pptx
bhoomigowda12345
 
Beyond the code. Complexity - 2025.05 - SwiftCraft
Beyond the code. Complexity - 2025.05 - SwiftCraftBeyond the code. Complexity - 2025.05 - SwiftCraft
Beyond the code. Complexity - 2025.05 - SwiftCraft
Dmitrii Ivanov
 
How I solved production issues with OpenTelemetry
How I solved production issues with OpenTelemetryHow I solved production issues with OpenTelemetry
How I solved production issues with OpenTelemetry
Cees Bos
 
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb ClarkDeploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Peter Caitens
 
The-Future-is-Hybrid-Exploring-Azure’s-Role-in-Multi-Cloud-Strategies.pptx
The-Future-is-Hybrid-Exploring-Azure’s-Role-in-Multi-Cloud-Strategies.pptxThe-Future-is-Hybrid-Exploring-Azure’s-Role-in-Multi-Cloud-Strategies.pptx
The-Future-is-Hybrid-Exploring-Azure’s-Role-in-Multi-Cloud-Strategies.pptx
james brownuae
 
Orion Context Broker introduction 20250509
Orion Context Broker introduction 20250509Orion Context Broker introduction 20250509
Orion Context Broker introduction 20250509
Fermin Galan
 
Download 4k Video Downloader Crack Pre-Activated
Download 4k Video Downloader Crack Pre-ActivatedDownload 4k Video Downloader Crack Pre-Activated
Download 4k Video Downloader Crack Pre-Activated
Web Designer
 
Medical Device Cybersecurity Threat & Risk Scoring
Medical Device Cybersecurity Threat & Risk ScoringMedical Device Cybersecurity Threat & Risk Scoring
Medical Device Cybersecurity Threat & Risk Scoring
ICS
 
Autodesk Inventor Crack (2025) Latest
Autodesk Inventor    Crack (2025) LatestAutodesk Inventor    Crack (2025) Latest
Autodesk Inventor Crack (2025) Latest
Google
 
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World ExamplesMastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
jamescantor38
 
Why Tapitag Ranks Among the Best Digital Business Card Providers
Why Tapitag Ranks Among the Best Digital Business Card ProvidersWhy Tapitag Ranks Among the Best Digital Business Card Providers
Why Tapitag Ranks Among the Best Digital Business Card Providers
Tapitag
 
Troubleshooting JVM Outages – 3 Fortune 500 case studies
Troubleshooting JVM Outages – 3 Fortune 500 case studiesTroubleshooting JVM Outages – 3 Fortune 500 case studies
Troubleshooting JVM Outages – 3 Fortune 500 case studies
Tier1 app
 
[gbgcpp] Let's get comfortable with concepts
[gbgcpp] Let's get comfortable with concepts[gbgcpp] Let's get comfortable with concepts
[gbgcpp] Let's get comfortable with concepts
Dimitrios Platis
 
!%& IDM Crack with Internet Download Manager 6.42 Build 32 >
!%& IDM Crack with Internet Download Manager 6.42 Build 32 >!%& IDM Crack with Internet Download Manager 6.42 Build 32 >
!%& IDM Crack with Internet Download Manager 6.42 Build 32 >
Ranking Google
 
Passive House Canada Conference 2025 Presentation [Final]_v4.ppt
Passive House Canada Conference 2025 Presentation [Final]_v4.pptPassive House Canada Conference 2025 Presentation [Final]_v4.ppt
Passive House Canada Conference 2025 Presentation [Final]_v4.ppt
IES VE
 
sequencediagrams.pptx software Engineering
sequencediagrams.pptx software Engineeringsequencediagrams.pptx software Engineering
sequencediagrams.pptx software Engineering
aashrithakondapalli8
 
Reinventing Microservices Efficiency and Innovation with Single-Runtime
Reinventing Microservices Efficiency and Innovation with Single-RuntimeReinventing Microservices Efficiency and Innovation with Single-Runtime
Reinventing Microservices Efficiency and Innovation with Single-Runtime
Natan Silnitsky
 
Adobe Audition Crack FRESH Version 2025 FREE
Adobe Audition Crack FRESH Version 2025 FREEAdobe Audition Crack FRESH Version 2025 FREE
Adobe Audition Crack FRESH Version 2025 FREE
zafranwaqar90
 
Digital Twins Software Service in Belfast
Digital Twins Software Service in BelfastDigital Twins Software Service in Belfast
Digital Twins Software Service in Belfast
julia smits
 
From Vibe Coding to Vibe Testing - Complete PowerPoint Presentation
From Vibe Coding to Vibe Testing - Complete PowerPoint PresentationFrom Vibe Coding to Vibe Testing - Complete PowerPoint Presentation
From Vibe Coding to Vibe Testing - Complete PowerPoint Presentation
Shay Ginsbourg
 
Artificial hand using embedded system.pptx
Artificial hand using embedded system.pptxArtificial hand using embedded system.pptx
Artificial hand using embedded system.pptx
bhoomigowda12345
 
Beyond the code. Complexity - 2025.05 - SwiftCraft
Beyond the code. Complexity - 2025.05 - SwiftCraftBeyond the code. Complexity - 2025.05 - SwiftCraft
Beyond the code. Complexity - 2025.05 - SwiftCraft
Dmitrii Ivanov
 
How I solved production issues with OpenTelemetry
How I solved production issues with OpenTelemetryHow I solved production issues with OpenTelemetry
How I solved production issues with OpenTelemetry
Cees Bos
 
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb ClarkDeploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Peter Caitens
 
The-Future-is-Hybrid-Exploring-Azure’s-Role-in-Multi-Cloud-Strategies.pptx
The-Future-is-Hybrid-Exploring-Azure’s-Role-in-Multi-Cloud-Strategies.pptxThe-Future-is-Hybrid-Exploring-Azure’s-Role-in-Multi-Cloud-Strategies.pptx
The-Future-is-Hybrid-Exploring-Azure’s-Role-in-Multi-Cloud-Strategies.pptx
james brownuae
 
Orion Context Broker introduction 20250509
Orion Context Broker introduction 20250509Orion Context Broker introduction 20250509
Orion Context Broker introduction 20250509
Fermin Galan
 
Download 4k Video Downloader Crack Pre-Activated
Download 4k Video Downloader Crack Pre-ActivatedDownload 4k Video Downloader Crack Pre-Activated
Download 4k Video Downloader Crack Pre-Activated
Web Designer
 
Medical Device Cybersecurity Threat & Risk Scoring
Medical Device Cybersecurity Threat & Risk ScoringMedical Device Cybersecurity Threat & Risk Scoring
Medical Device Cybersecurity Threat & Risk Scoring
ICS
 
Autodesk Inventor Crack (2025) Latest
Autodesk Inventor    Crack (2025) LatestAutodesk Inventor    Crack (2025) Latest
Autodesk Inventor Crack (2025) Latest
Google
 
Ad

Java applet

  • 2. Outline • Introduction to java Programming • Applet Overview • Applet Skeleton • Steps to Write Applet Code • Compilation Process • Java Applet E.g. with HTML Code
  • 3. What is Java • Java is Simplified version of C++ • Java is a programming language that is object Oriented and specifically designed to have as few implementation dependencies as possible • Java Programs can be easily moved form one computer to another • Almost everything in Java is an Object and Classes • Java has the ability to share both data and program • Java does not use pointer and header files • A class is collection of Object of similar type
  • 4. What is Applet • Applet are Java Program that are used for Internet Computing • Applet can be transported over the internet from one computer to another • It can perform logical and arithmetic operations as well as accept user input • Applet are event driven • If you want to write applet code so you need to import two packages that is awt(Abstract Window Toolkit) and applet
  • 5. Cont. • Execution of applet code does not begin with main()function • Types of Applet Local Applet :- Developed & stored in Local System Remote Applet :- Developed & stored on a Remote computer connected to the internet • Once an applet has been compiled, it is included in an HTML file using Applet tag
  • 6. Cont. • Applets are not executed by a console based java run-time interpreter, but they are executed by either a java enabled web browser or an applet viewer. • You need two notepad one for java(Applet)code and another for HTML code having Applet Tag in that
  • 7. An Applet Skeleton • Applet skeleton includes different methods for writing applet • When an applet begins, the AWT calls the following methods, in this sequence: init( ) start( ) paint( ) • When an applet is terminated, the following sequence of method calls takes place:
  • 8. Cont. • stop( ) • destroy( ) • Above all methods are in Applet Life cycle • Explanation about above is as follows: • init( ):- init() is the first method to be called. This is where you should initialize variables. This method is called only once during run time of your applet
  • 9. Cont. • start( ):- start() called after init(), also called to restart applet after it has been stopped. start() is called each time an applet’s HTML document is displayed on screen. • paint( ):- paint() is called each time your applets output must be redrawn. also called when the applet begins execution. This method has one parameter, Graphics. • stop( ):- stop()is called when a web browser leaves the HTML document containing the applet- when it goes to another page.
  • 10. Cont. • destroy( ) :- destroy() is called when environment determines that your applet needs to be removed completely from memory. The stop() method is always called before destroy().
  • 11. Steps to write Applet code • Writing an applet code in java file & save with class name (.java file) • Compile it & create (.class file) • Design a page using HTML tags • Write a <APPLET> Tag in that • Save it same as a class name with .HTML extension • Testing
  • 12. Compilation Process • Open command prompt then go to directory using CD command • E.g. c:Users>d: • I am in D Drive now going to my directory using CD command • D:> cd Ram • I am in my directory that is Ram • Compile source file D:Ram> Javac Classname.java • E.g. D:Ram> Javac Demo.java
  • 13. Cont. • Open file in appletviewer • Then Run HTML code • D:Ram> appletviewer classname.html • E.g. D:Ram> appletviewer Demo.html
  • 14. Following Program shows a simple java applet import java.applet.*; import java.awt.*; public class DemoApp extends Applet{ public void paint (Graphics g) { g.drawString (“Welcome in Applet World", 25, 50); } }
  • 15. Cont. • Save source file with name DemoApp.java • Compile source file D:Ram> javac DemoApp.java • Write HTML File and save it DemoApp.html
  • 16. HTML Code <html> <title> Welcome in Applet World </title> <hr> <applet code=“DemoApp.class" width="320" height="120"> </applet> </hr> </html>
  • 17. Cont. • Open file in appletviewer • Then Run HTML code • D:Ram> appletviewer DemoApp.html
  翻译: