-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssignment7.java
More file actions
31 lines (18 loc) · 596 Bytes
/
Assignment7.java
File metadata and controls
31 lines (18 loc) · 596 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Assignment #: 7
// Name: Miguel Zavala
// StudentID: 1204402766
// Lecture: MWF 1030AM
// Description: this program lets the user resize and change the color of a rectangle.
// The user can either have the box empty or have it filled white,red,blue,green or orange.
import javax.swing.*;
public class Assignment7 extends JApplet
{
public void init()
{
// create a WholePanel object and add it to the applet
WholePanel wholePanel = new WholePanel();
getContentPane().add(wholePanel);
//set applet size to 400 X 400
setSize (400, 400);
}
}