{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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 Document Right 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 Document Right 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 Differences: Not a standalone application – no main method
Background image of page 5

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

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

{[ snackBarMessage ]}