Created
March 9, 2009 00:34
-
-
Save avh4/76024 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create the variable for the image's URL | |
URL spaceshipImageURL; | |
// Get the URL of the image | |
spaceshipImageURL = getClass().getResource("my_spaceship.png"); | |
// Create the variable for the image | |
Image spaceshipImage; | |
// Load the image from the URL | |
spaceshipImage = ImageIO.read(spaceshipImageURL); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment