Question: In Bluej or NetBeans (Geometry: create a RegularPolygonPane for displaying an n-sided regular polygon. Write a program that: 1. Displays a regular polygon and uses
In Bluej or NetBeans (Geometry: create a RegularPolygonPane for displaying an n-sided regular polygon. Write a program that: 1. Displays a regular polygon and uses two buttons named and to increase or decrease the number of sides of the polygon, as shown in Figure 15.4. 2. Also enable the user to increase or decrease the size of the polygon by clicking the right or left mouse button and by pressing the UP and DOWN arrow keys.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
