Presentation is loading. Please wait.

Presentation is loading. Please wait.

12-2 Chapter Topics Chapter 14 discusses the following main topics: Introduction to Applets A Brief Introduction to HTML Creating Applets with Swing Using.

Similar presentations


Presentation on theme: "12-2 Chapter Topics Chapter 14 discusses the following main topics: Introduction to Applets A Brief Introduction to HTML Creating Applets with Swing Using."— Presentation transcript:

1

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

3

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

8

9 A Good Introduction / hands-on http://www.w3schools.com/html/html_intro.asp

10

11 Adding an Applet into an HTML page My First Heading My first paragraph.

12

13

14 Creating an Applet in NetBeans

15

16

17

18

19

20

21

22

23

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á!!!!


Download ppt "12-2 Chapter Topics Chapter 14 discusses the following main topics: Introduction to Applets A Brief Introduction to HTML Creating Applets with Swing Using."

Similar presentations


Ads by Google