Site Search

CS 111: lab 7 main content

Student Learning Objectives

Demonstrate the ability to

Lab 7 Assignment

Based on Chapter 12, Programming Challenge 2: Image Viewer

Write an application that allows the user to view image files. Use a button to allow the user to select a image file. When the user selects the file, display it in the window.

Include a shortcut mnemonic (Alt-G) and a tooltip with your button.

Download these images to your U:\Lab7 folder to test your program

Sample Session

JFrame snapshot

File Chooser

JFrame snapshot

To Receive Credit

Programming Challenge

If you finish early, get yourself checked off first! As a programming challenge (not required but recommended):

Replace the button with a File menu Open item. Add a Exit menu item as well.