Friday, April 17
Event Driven Programming and GUIs Part 4
Today we did a quick review of the Java class libraries, covered packages and recaped the different types of class methods and accessor types. We spent the rest of the class working on SWING programs. We started with a simple temperature conversion application and added buttons to it in order to make it easier to use. We then looked at an application that draws circles to the screen on a button click. Next we looked at how to make the buttons draw to the screen wherever there was a mouse click. Finally we created a simple drawing program that drew circles whereever we dragged the mouse. We ended with the question - How would you change the program so that the user can grab a circle and drag it to a new location in the program window?