Download presentation
Presentation is loading. Please wait.
Published byGertrude Perry Modified over 9 years ago
2
12-2 Chapter Topics Chapter 14 discusses the following main topics: Introduction to Applets A Brief Introduction to HTML Creating Applets with Swing Using AWT for Portability Drawing Shapes Handling Mouse and Key Events Timer Objects Playing Audio
4
Introduction to Applets Apple Applet???? An applet is a Java program that is associated with a Web page and is executed in a Web browser as part of that Web page Example: file:///D:/DATA/brasko/users/paulo/Pitt%20University/CS- 0401/slides%20from%20Editor/Chapter%2014/TempConverter/TempCon verter.htmlfile:///D:/DATA/brasko/users/paulo/Pitt%20University/CS- 0401/slides%20from%20Editor/Chapter%2014/TempConverter/TempCon verter.html
5
Introduction to Applets Two types of Java programs: Applications A stand-alone program that runs on your computer Applets Programs that are part of a Web site that is executed inside the browser window
6
Introduction to Applets AppletWeb Page Applet Web Page
7
Applets and Web Pages: Good Friends We need to learn a little bit about HTML (web pages) in order to be able to understand the relationship between Applets and Web Pages
9
A Good Introduction / hands-on http://www.w3schools.com/html/html_intro.asp
11
Adding an Applet into an HTML page My First Heading My first paragraph.
14
Creating an Applet in NetBeans
24
Copy the jar and class files
25
Update Your Web Page
26
Run the web page file In the Windows Explorer, double click on the html file
27
Voilá!!!!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.