Chapter 12 Applets and Advanced Graphics
Download
371,5 Kb.
Sana
11.01.2022
Hajmi
371,5 Kb.
#348386
Bog'liq
18slide - Applets and Multimedia
Bu sahifa navigatsiya:
Objectives
Developing Applets
First Simple Applet
Chapter 18
Applets and Multimedia
Motivations
When
browsing the Web
, you frequently see the graphical user interface and animation developed using Java. These programs are called Java applets. Suppose you want to develop a Java applet for the Sudoku game. How do you write this program?
Sudoku
Objectives
To convert GUI applications to applets (§18.2).
To embed applets in Web pages (§18.3).
To run applets from Web browsers and from the appletviewer (§§18.3.1-18.3.2).
To write a Java program that can run as both an application and an applet (§18.4).
To
override the
init
,
start
,
stop
, and
destroy
methods in the
Applet
class (§18.5).
To pass string values to applets from HTML (§18.6).
To develop an applet for the TicTacToe game (§18.7).
To develop an animation for a bouncing ball (§18.8).
To locate resources (images and audio) using the
URL
class (§18.9).
To play audio in any Java program (§18.10).
Developing Applets
The
HTML Tag
code=classfilename.class
width=applet_viewing_width_in_pixels
height=applet_viewing_height_in_pixels
[archive=archivefile]
[codebase=applet_url]
[vspace=vertical_margin]
[hspace=horizontal_margin]
[align=applet_alignment]
[alt=alternative_text]
>
First
Simple Applet
Java
Applet Demo
code = "DisplayLabel.class"
width = 350
height = 200>
Download
371,5 Kb.
Do'stlaringiz bilan baham:
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling
kiriting
|
ro'yxatdan o'tish
Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha
yuklab olish