34-section-6

34-section-6 - Handout #34 CS 106A Aug 3, 2009 Section...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Handout #34 CS 106A Aug 3, 2009 Section Handout #6 Using Interactors 1. Box Diagram This problem is designed to give you practice using the kind of interactors you need for the NameSurfer project in Assignment #6. The specific example is to build a framework for an interactive design tool that allows the user to arrange boxes with labels on the window. The starting configuration for the program presents an empty graphics canvas and a control strip containing a JLabel , a JTextField , and three JButton s. The window as a whole then looks like this: Name Add Remove Clear BoxDiagram The most important operation in the program is to be able to add a new box to the screen, which you do by typing the name of the box in the JTextField and clicking the Add button. Doing so creates a new labeled box with that name in the center of the window. For example, if you entered the string Program in the JTextField and clicked Add , you would see the following result: Name Program Add Remove Clear BoxDiagram Program 2...
View Full Document

Page1 / 2

34-section-6 - Handout #34 CS 106A Aug 3, 2009 Section...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online