Java Applet Presented by: Feng Liu. Agenda Introduction Java Applet vs. JavaScript Steps in Creating a Java Applet Java Applet Example Do I have to write.

Slides:



Advertisements
Similar presentations
In Review JAVA C++ GUIs - Windows Webopedia.com.
Advertisements

Introduction to JavaScript
Understand Web Page Development Software Development Fundamentals LESSON 4.1.
Java Applet & JavaScript SNU OOPSLA Lab. October 2005.
Client Side Programming Using Java Applet Outcomes: You will be expected to know: – Java Applets and HTML file; –bytecode and platform independent programs;
got ? Research Project – April 1998 Hang Xia, Mark Wang, Richard S. Chang Updated: R Norman, August 1999.
1 Introduction to Applets Overview l What is an Applet? l Steps for creating an applet l What is HTML? l Basic HTML tags l Drawing Simple Graphical shapes.
Active X Microsoft’s Answer to Dynamic Content Reference: Using Active X by Brian Farrar QUE
Applets, Graphical User Interfaces, and Threads / Chapter 9 1 Applets, Graphical User Interfaces, and Threads.
Multiple Tiers in Action
Applets. What is an Applet?  According to Sun “An applet is a small program that is intended not to be run on its own, but rather to be embedded inside.
Java Quick & Dirty By Bert Wachsmuth. Overview  We will cover: What is Java Using and Writing Java applets Getting more information  We will need: Knowledge.
Object Oriented Programming (OOP) LAB # 5 TA. Maram & TA. Mubaraka TA. Kholood & TA. Aamal.
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
PHY281Introduction to JavaSlide 1 Introduction to Java In this section we will learn how how to use Java and write our first Java Applet:  The Java Development.
Getting Started What is Java? A programming language –Fully buzzword-compliant: A simple, object oriented, distributed, interpreted, robust, secure,
Introduction to Java Programming. Contents 1. Java, etc. 2. Java's Advantages 3. Java's Disadvantages 4. Types of Java Code 5. Java Bytecodes 6. Steps.
Introduction to Java CSIS 3701: Advanced Object Oriented Programming.
+ Java vs. Javascript Jessi Style. + Java Compiled Can stand on its own Written once, run anywhere Two-stage debugging Java is an Object Oriented Programming.
4.1 JavaScript Introduction
Java Workshop for Teachers May 6, 2005 A Brief Look at the Java Programming Language.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 16: Java Applets & AWT Fundamentals of Web Programming.
Java Lecture 16: Dolores Zage. WWW n Was a method for distributing passive information n added forms and image maps n interaction was only a new way to.
JAVA APPLETS By: Ms. Humaira Siddiqui. Java and the Internet Java is considered to be a language well suited to be used in the internet. In contrast with.
Applets Chapter 17.  Java’s big splash onto the scene came in the mid 90’s. The people at Sun Microsystems had managed to work java programs into Web.
Applets.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
What is Java Script? An extension to HTML. An extension to HTML. Allows authors to incorporate some functionality in their web pages. (without using CGI.
OOP (Java): Simple/ OOP (Java) Objectives – –give some simple examples of Java applications and one applet 2. Simple Java Programs Semester.
POS 406 Java Technology And Beginning Java Code
1 Programming Fundamentals AITI-GP. 2 Introduction to Programming.
Java Tutorial Ethan New York University.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Applets. What is an applet? Why create applets instead of applications? – Applets are Java programs that can be embedded in an HTML document – In contrast,
Java Applets. 2 Introduction to Java Applet Programs Applications are ___________________ programs –executed with Java interpreter Applet is a small program.
2/4: Objects & Java Applets Objects: their nature –attributes & behaviors –inheritance Java Applets –what is an applet vs. an application? –where do applets.
Java Applets 1. What is an applet? An applet is a small Java program that is typically embedded in a Web page and can be run using the applet viewer or.
Program that runs in appletviewer (test utility for applets) Web browser (IE, Communicator) Executes when HTML (Hypertext Markup Language) document containing.
3D Animations on the Internet Tyson Shepherd (sophomore) Intense Laser Physics Theory Unit Supports: NSF, Res. Co, URG.
Java applets. Outline What is Java? Java Applications Java Applets Java Applets Securities Summary.
JavaScript - A Web Script Language Fred Durao
COP2800 – Computer Programming Using JAVA University of Florida Department of CISE Spring 2013 Lecture 35 – Overview of Java Web Programming Webpage:
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
Mini University July, 2005 A Little Taste of Java (but don’t tell your folks) (they might think there’s caffeine involved)
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
12-2 Chapter Topics Chapter 14 discusses the following main topics: Introduction to Applets A Brief Introduction to HTML Creating Applets with Swing Using.
Sahar Mosleh California State University San MarcosPage 1 JavaScript Basic.
Chapter 14 Applets and Advanced GUI  The Applet Class  The HTML Tag F Passing Parameters to Applets F Conversions Between Applications and Applets F.
Intro to Applets. Applet Applets run within the Web browser environment Applets bring dynamic interaction and live animation to an otherwise static HTML.
Lecture 1. Introduction to Programming and Java MIT- AITI 2003.
Your name CSCI/CMPE 3326 Object-Oriented Programming in Java Dongchul Kim Department of Computer Science University of Texas – Pan American 1.Applet.
CSI 3125, Preliminaries, page 1 Applet. CSI 3125, Preliminaries, page 2 Applet An applet is a Java program that runs in a Web browser. An applet can be.
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
CHAPTER Agenda Applets Servelets Browsers HelloWorld.
1 Java Applet Basics Chapter Eight. 2 Applets vs. Applications l Applications: Stand alone Java programs run by interpreter l Applets WWW browser embedded.
2/4: Objects & Java Applets Objects: their nature –attributes & behaviors –inheritance –information hiding –classes: blueprints for objects Java Applets.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing.
JavaScripts.
A Programming Language for Web-based Computing with Graphics
CIS 388 Internet Programming
Distributed Computing, M. L. Liu
Unit 6 part 3 Test Javascript Test.
A Programming Language for
Introduction to Java Brief history of Java Sample Java Program
Applet in Java.
Java Programming COMP-417 Applet
Handout-14 Applets and Graphics
JAVA APPLET PREPARED BY Mr. Jahanzaib Ahmed
A Programming Language for
APPLET PROGRAMMING.
Presentation transcript:

Java Applet Presented by: Feng Liu

Agenda Introduction Java Applet vs. JavaScript Steps in Creating a Java Applet Java Applet Example Do I have to write my own Summary

Introduction What is JAVA? Java is an object oriented programming language created by Sun Microsystems What is Java Applet? A fully functioning small Java application Used for Web Design Need to be embedded into HTML file

Introduction What Java Applet Can do? Display message and image on a web page Draw picture on a web page receive input from the user through keyboard or mouse Play Sound

Java Applet vs. JavaScript Both similar and quite different Java AppletJavaScript Created by SunCreated by Netscape Standalone application Developed outside out of HTML text that is fed into a browser that can read it and then is enacted by the browser. Must be converted into machine language before it can be run on the web Text based, not need to be compiled Once it is compiled, it is set. Have to go back to the original text and alter it, then compile again. Can be altered after it runs and run it again and again

Steps in Creating a Java Applet Write the Java Applet Source Code import java.applet.Applet; import java.awt.Graphics; public class HelloWorldApplet extends Applet { public void paint(Graphics g) { g.drawString("Hello world!", 50, 25); } compile it

Steps in Creating a Java Applet Write a HTML to call the Applet ……. …… Open the HTML file in browser and run it

Java Applet Example

Do I have to write my own No! There are many Java Applet available on the Web For Example: Java Boutique Java File Freeware Java etc.

Summary Java Applet is part of Java Programming language It is a useful tool for the Web Development There are thousands of Java Applet available online If you decide to use those free applets, make sure you give the author credits

References HTML HOODIES. (2003). So, You Want A Java Applet, Huh!?. HTML HOODIES. (2003). Java vs. JavaScript. Smith, D. (1998). Java for the world wide web. California: Peachpit Press What can a Java Applet do? 0a%20Java%20Applet%20do.html

Thank you Any Question?