CreateSlideShow

CreateSlideShow - String directoryName =

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * CreateSlideShow.java * * Allows the user to intitiate a slideshow using some initial information. */ import java.io.*; i public class CreateSlideShow { public static void main(String[] args) { // Obtain width/height from user int width = SimpleInput.getIntNumber("Enter the desired canvas width"); int height = SimpleInput.getIntNumber("Enter the desired canvas height"); // Obtain the directory location to load images from
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: String directoryName = SimpleInput.getString("Enter the directory to obtain slideshow images from"); // Create the slideshow SlideShow slides = new SlideShow(directoryName); // Obtain the time inteval int timeInterval = SimpleInput.getIntNumber("Enter the time interval for switching pictures in the slideshow, in seconds"); // Show the slides slides.showSlides(width, height, timeInterval); } }...
View Full Document

Ask a homework question - tutors are online