lecture9 - ISE 582 Information Technology for Industrial...

Info icon This 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
Image of page 1

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

View Full Document Right 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
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.
Image of page 3

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

View Full Document Right 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
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
Image of page 5

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

View Full Document Right 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.
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.
Image of page 7

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern