Applets - CIS3023: Programming Fundamentals for CIS Majors...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
5/27/11 CIS3023: Programming Fundamentals for CIS Majors II Summer 2010 Ganesh Viswanathan Introduction to Applets Course Lecture Slides 29th July 2010
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
5/27/11 Applets Applets are small applications accessed on an Internet server , transported over the networks, automatically installed and run as part of a web document. At the client, applets get limited access to resources to be able to produce graphics,
Background image of page 2
5/27/11 Applets Applet Code Example: HelloWorld.java import java.awt .Graphics; import java.applet .Applet; public class HelloWorld extends Applet { public void paint(Graphics g){ g.drawString("Hello World!", 120, 80); } } Every applet must be a subclass of pplet .
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
5/27/11 Applets Web document: HelloWorld.html <HTML> <HEAD><TITLE>Applet example</TITLE> </HEAD> <BODY> <APPLET code="HelloWorld.class" width="300px" height="200px"></APPLET> </BODY> </HTML>
Background image of page 4
5/27/11 Abstract Window Toolkit (AWT) The Abstract Window Toolkit (AWT) is Java's original platform-independent
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/27/2011 for the course CIS 3023 taught by Professor Dobbins during the Summer '08 term at University of Florida.

Page1 / 13

Applets - CIS3023: Programming Fundamentals for CIS Majors...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online