This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CSE 335 Homework 5 Objectives: 1. Continue to exercise the use of abstract classes and interfaces. 2. Design collaborations that involve stock widgets in a GUI toolkit. 3. Synthesize a composite collaboration from simpler ones. Description: The executable file cse335/AlexLiu/HW/HW05/Reference/browser is a graphical browser that allows users to scroll through the lines of an ASCII file using a viewport window and a scrollbar. The browser is run as follows: browser file [size] where file is the name of an ASCII file, and the optional argument size is a positive integer that specifies the size (i.e., number of lines) of the viewport window. For example: browser /etc/motd 5 will create a browser that displays the CSE-system message of the day, 5 lines at a time. Observe that clicking on the scroll buttons or dragging the handle causes the viewport to scroll appropriately. Observe also that if the window is resized, either vertically or horizontally, then the contents of the viewport expand or contract as appropriate....
View Full Document
- Fall '08