

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Professor: Gries; Class: Introduction to Computing Using Java; Subject: Computer Science; University: Cornell University; Term: Fall 2008;
Typology: Study notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


1
Read Chapter 16 of the text
Top finalists from a real-life “Dilbert quotes contest” As of tomorrow, employees will be able to access the building only using individual security cards. Pictures will be taken next Wednesday and employ- ees will receive their cards in two weeks." (Fred Dales, Microsoft) I need an exact list of specific unknown problems we might encounter. (Lykes Lines Shipping) Email is not to be used to pass on information or data. It should be used only for company business. (Accounting manager, Electric Boat Company) This project is so important, we can't let things that are more important interfere with it. (Advertising/Marketing manager, United Parcel Service) Doing it right is no excuse for not meeting the schedule. (Plant manager, Delco Corporation) 2
3 Executing Java programs outside the DrJava Interactions pane. Every Java program is either an application or an applet. public class C { … public static void main(String[] args) { … } … }
4 public class CLAS { … public static void main(String[] args) { … } … }
Terminal window (can type “java CLAS” in DrJava Interactions pane)
5
6
7
Create Manifest File
type (list)
9
public class C { public static void main(String[] args) { … } } application import javax.swing.; public class* A extends JApplet{ public void init() { … } public void start() { …} public void stop() { … } public void destroy() { … } } applet
10
An html (HyperText Markup Language) file
Just a title
Demo Links and Images
This is a link
This link opens a new window
Below is an image
**** start an html page **** start the “heading” **** the title for the page <body> start the body, content, of the page <p> begin a paragraph <a> begin a link <img> begin an image 11 An html (HyperText Markup Language) file <html> <head> <title>FacultyApplet
This is an Applet!
**tags ** start an html page **** start the “heading” **** the title for the page <body> start the body, content, of the page <p> begin a paragraph <b> begin boldface <i> begin italics <applet> start a Java applet <br> line break (no end tag)