Lecture27 - Applets and Course Evaluation Applet Example -...

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

View Full Document Right Arrow Icon
1 Applets and Course Evaluation Applet Example - Sailing Applet UML Diagrams Applet Web Page Encoding (HTML) Applet Java Coding – Hello World Course Evaluations Reading for this lecture: L&L 2.7-2.9, App G
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 Applet Use Case Diagram Browser (Netscape) Applet Server Via Internet Scenario: Run Applet
Background image of page 2
3 Applet Class Diagram JApplet AppletName + init( ) : void + start( ) : void + stop( ) : void + destroy( ) : void (Override parent methods) + paint(screen : Graphics) : void Graphics + clearRect( … ) : void + setColor( … ) : void + drawString( … ) : void + drawRect( … ) : void
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 Applet Sequence Diagram User Browser Server Open Page Obtain HTML file and Applet class file JApplet app = new JApplet(); app.start ( ) app.init ( ) app.paint (Graphics screen) Applet Display via calls to Graphics methods Display Page Close Page app.stop ( ) app.destroy ( ) app = null; (Garbage)
Background image of page 4
5 JApplet Class JApplet is a class in javax.swing package It is a top level GUI container like a JFrame
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 09/25/2010 for the course CS 110 taught by Professor Wilson during the Spring '10 term at University of Massachusetts Boston.

Page1 / 13

Lecture27 - Applets and Course Evaluation Applet Example -...

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