Student Name: __________________
Class and Section __________________
Total Points (20 pts) __________________
Due: December 7, 2009 before the class
Project: N-Sided Regular Polygon
CSCI 1302 Advanced Programming Principles
Armstrong Atlantic State University
Problem Description:
Write a program that displays a regular polygon and uses two buttons named +1
and -1 to increase or decrease the size of the polygon, as shown in the following
figure.
Your Task:
1. Create the RegularPolygonPane class for displaying an n-sided regular
polygon. n is a data field in RegularPolygonPane.
Submit the following items:
1. Compile and Submit to LiveLab as Exercise15_04Extra (you must submit the program
regardless whether it complete or incomplete, correct or incorrect)
2. Fill in self-evaluation:
1. Can your program create the UI? _______________
2. Can your program display one polygon correctly? _______________
3. Can your program display n-side polygon correctly? _______________
4. Can your program handle action event from the buttons? _______________
5. Can your program redisplay the polygon when the user clicks the
buttons?_______________
6. Can your program resize the polygon when the user resizes the frame?