-
Notifications
You must be signed in to change notification settings - Fork 0
/
GreetingCardStarter.java
41 lines (36 loc) · 1.39 KB
/
GreetingCardStarter.java
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* This java class contains the main method. It instantiates three objects: GreetingCardFrame, GreetingCardThread,
* and GreetingCard2.
*
* Jacob Uriel R. Quintos
* April 1, 2019
*/
/*
I have not discussed the Java language code
in my program with anyone other than my instructor
or the teaching assistants assigned to this course.
I have not used Java language code obtained
from another student, or any other unauthorized
source, either modified or unmodified.
If any Java language code or documentation
used in my program was obtained from another source,
such as a text book or webpage, those have been
clearly noted with a proper citation in the comments
of my code.
*/
public class GreetingCardStarter {
/**
* After instantiating the GreetingCardFrame object, two methods are called: setUpFrame() and addKeyBindings(). Here,
* the frame and keybindings are created. Afterwards, the two thread objects are instantiated, and .start() is called, where
* their infinite loops run.
*/
public static void main(String[] args) {
GreetingCardFrame gcf = new GreetingCardFrame(1024,768, "Animated Java Greeting Card");
gcf.setUpFrame();
gcf.addKeyBindings();
GreetingCardThread mainThread = new GreetingCardThread(gcf.getGCC());
mainThread.start();
GreetingCardThread2 st = new GreetingCardThread2(gcf.getGCC());
st.start();
}
}