6 applet programming in java
Post on 02-Jun-2018
225 Views
Preview:
TRANSCRIPT
-
8/10/2019 6 Applet Programming in Java
1/10
-
8/10/2019 6 Applet Programming in Java
2/10
Applets are small applications which are
transported over the internet server, install
themselves automatically without anymanual assistance and run as a part of web
document. They can be transported over the
internet from one computer to another andrun using the applet viewer or any web
browser that supports java.
-
8/10/2019 6 Applet Programming in Java
3/10
Local Applets - An applet developed locally
and stored in a local system is known as local
applet, it doesnt require any internet
connections.
Remote Applets - A remote applet is that
which is developed by someone else and stored
on a remote computer connected to the
internet, which we can download the applet
onto our system via the internet and run it.
-
8/10/2019 6 Applet Programming in Java
4/10
Born or Initialization state.
Running state.
Idle state.
Dead or Destroyed state.
-
8/10/2019 6 Applet Programming in Java
5/10
BORN
RUNNING IDLE
DEAD END
Begin
Display
Initialization
Stopped
Destroyed
destroy()
start()
start()
paint()
-
8/10/2019 6 Applet Programming in Java
6/10
Applets.Applets are small programs.Applet dont have the main
method.
Applets can run in browsers
window or in Applet viewer.(To
run the applet in an Applet
viewer will be an advantage
for debugging)
Applets are designed for the
client site programming
purpose.
Application
Applications are larger
programs.
Application execution
starts with the main method.
Application can run in
browserswindow.
.Application dont havesuch type of criteria.
-
8/10/2019 6 Applet Programming in Java
7/10
Draw pictures on a web page.
Create a new window and draw in it.
Play sounds. Receive input from the user through the
keyboard or the mouse.
Make a network connection to the serverfrom which it came and can send and receive
data from that server.
-
8/10/2019 6 Applet Programming in Java
8/10
Applets are cross platform and can run onWindows, MacOS and Linux platform.
Applets can work all the version of java plug-in.
Applets runs in a sandbox, so the user does notneed ton trust the code, so it can work withoutsecurity approval.
Applets are supported by most web browsers..
Applets are cached in most web browsers, so willbe quick to load when returning to a web page.
-
8/10/2019 6 Applet Programming in Java
9/10
Java plug-in is required to run applet.
Java applet requires JVM(Java VirtualMachine),so first time it takes significant startup
time. If java applet is not already cached in the
machine, it will be downloaded from internet andwill take time.
Its difficult to design and build good userinterface in applets compared to HTMLtechnology.
-
8/10/2019 6 Applet Programming in Java
10/10
Java applets runs on the java and enables web
browsers such as Mozilla, Netscape Navigator
and Internet Explorer. Applets are ideal for the
web because they leverage browser features,
which decreases file size, increases download
speed and simplify the programming.
top related