CSC 161 Test 1 Program: Size Up, Size Down

Write a Java swing program that displays two buttons, one labelled +10 and the other labelled -10. When pressed, the +10 adds 10 pixels to both the width and height of the frame, thus expanding the frame. The -10 button has the opposite effect: when pressed, it shrinks the frame by subtracting 10 pixels from the width and height.

You must use a separate listener class (define the class).

Submit the same way you submit labs and projects: zip up the folder and email to the instructor.