lecture9

lecture9 - ISE 582: Information Technology for Industrial...

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

View Full Document Right Arrow Icon
ISE 582: Information Technology for Industrial Engineering Instructor: Elaine Chew University of Southern California Department of Industrial and Systems Engineering Lecture 9 JAVA Cup 8: Applets Winston & Narasimhan: Chapt 43-46
Background image of page 1

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

View Full DocumentRight Arrow Icon
30 October 2003 Information Technology for IE 2 Applets • Properties • Browser Conventions • What Applets Cannot Do • What Applets Can Do • Accessing Applets from Web Browsers
Background image of page 2
30 October 2003 Information Technology for IE 3 Applets: Properties • Applets have no main methods. • The applet’s size is determined by the html file (no calls to setSize, show). • There are no WindowAdapter subclass and no windowClosing method in JApplet classes.
Background image of page 3

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

View Full DocumentRight Arrow Icon
30 October 2003 Information Technology for IE 4 Changing to an Applet extend JApplet instead of Jframe • Remove main method • Remove WindowListener and call to addWindowListener, do not import java.awt.event package • Constructor need not pass title to super(), eliminate calls to setSize, show Application
Background image of page 4
30 October 2003 Information Technology for IE 5 Browser Conventions • When a browser loads an applet, it calls: – the constructor – the init method (default init does nothing) – the start method (contains computations to be performed to start the applet) • When the applet page is replaced, it calls: – the stop method (also called before destroy) • When the applet page is abandoned completely, it calls: – the destroy method
Background image of page 5

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

View Full DocumentRight Arrow Icon
30 October 2003 Information Technology for IE 6 What Applets Cannot Do Load libraries or define native methods. Read/write files on the host that's executing it. Make network connections except to the host that it came from. Start any program on the host that's executing it. Read certain system properties. Windows that an applet brings up look different than windows that an application brings up.
Background image of page 6
30 October 2003 Information Technology for IE 7 What Applets Can Do Play Sounds Make network connections to the host they came from. Cause HTML documents to be displayed.
Background image of page 7

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

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

This note was uploaded on 02/01/2009 for the course ISE 582 taught by Professor Chew during the Fall '03 term at USC.

Page1 / 24

lecture9 - ISE 582: Information Technology for Industrial...

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

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