-
Notifications
You must be signed in to change notification settings - Fork 0
/
StoryFrame.java
39 lines (29 loc) · 928 Bytes
/
StoryFrame.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
/**
* StoryFrame.java
* Assignment: Final Project
* Purpose: To let us have some experience with actual coding, rather than
* just systematically fulfilling assignments through which we are
* walked step by step.
* @version 05/26/15
* @author Rachel Dell
*/
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.text.*;
public class StoryFrame extends Frame {
public StoryFrame() {
setTitle("Character Generator");
setLayout(new FlowLayout());
setSize(300, 200);
setResizable(true);
setBackground(Color.WHITE);
//set up a button to tell when user is done and output is displayed
Button buttonDone = new Button("Done");
add(buttonDone);
buttonDone.addActionListener(this);
}
public void actionPerformed(ActionEvent evt) {
//change display to show all the output
}
}