DOC PREVIEW
TRINITY CSCI 1311 - Lecture Notes
Pages 7

This preview shows page 1-2 out of 7 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Show Your Code11-19-2010Opening Discussion●Minute essay comments:–Animations:●Kenny and Cartman●3-D shapes?●A dog.–Can we do animations and still have mouse and keyboard input?–Does the second project have to be in Eclipse?Show Your Code●Let's look at people's code.Animation●Animation is basically displaying one thing after another in rapid succession.●We just have to change something about the appearance in between.Timer●The javax.swing.Timer class gives us a way to have some code called at regular intervals.●The Timer needs an ActionListener, so we will make our class implement ActionListener.●This will require us to add an actionPerformed(ActionEvent e) method. This is where we will put the code we want to have happen.Loading Images●To load in images we can use the javax.imageio.ImageIO class.●It has a read method to read from a File, but that won't work in an Applet. (This is why I provided the main method for you.)●The read method that uses a URL will work, but only for certain URLs.Minute Essay●What questions do you have?●Quiz on


View Full Document

TRINITY CSCI 1311 - Lecture Notes

Course: Csci 1311-
Pages: 7
Documents in this Course
Arrays

Arrays

12 pages

Arrays

Arrays

10 pages

Applets

Applets

5 pages

Arrays

Arrays

8 pages

Methods

Methods

12 pages

Drawing

Drawing

8 pages

Load more
Download Lecture Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?