Lab4 - CSE115 Lab 4 Introduction Fall 2009 In this lab you...

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

View Full Document Right Arrow Icon
CSE115 Lab 4 Fall 2009 Introduction In this lab you will use the Java you have learned in lecture to write a small program. You will apply what you know about the association relationship, accessor and mutator methods, and the manipulation of instance variables to complete a small program which lets you draw colored squares, whose colors can be changed as the program is running by clicking on them. To get a better idea of what the finished product should do, run a lab demo by typing, at the Linux prompt: java jar /projects/CSE115/Fall2009/FA09-CSE115-Lab4.jar NOTE: This jar file contains no source code. Decompiling this demo is a flagrant violation of the policy on academic integrity and will minimally result in immediate failure in the course. When the demo starts it opens a new window. This window has a button on the left labeled NEW SQUARE . Clicking it will create a square, of size 100x100 pixels, in the dark gray drawing area in the center of the window. Each time the button is clicked a new square is drawn in the drawing area, positioned at a random position, with a random rotation. Initially all the squares created are white.
Background image of page 1

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

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

Page1 / 4

Lab4 - CSE115 Lab 4 Introduction Fall 2009 In this lab you...

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