-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInfoPanel.java
35 lines (34 loc) · 1.04 KB
/
InfoPanel.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
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
/**
* Display the information of the program.
*
* @Destiny Zhu, Melory So, Coco Kneer
* @05/15/2018
*/
public class InfoPanel extends JPanel
{
/**
* Constructor: creates the panel.
*/
public InfoPanel()
{
setLayout (new BoxLayout(this, BoxLayout.Y_AXIS));
ImageIcon icon = new ImageIcon("jia.png");
add(new JLabel(icon));
add(new JLabel("Create your personalized family tree."));
add(new JLabel("See each of your family member's title."));
add(new JLabel("------"));
add(new JLabel("创造一个属于你的家谱。"));
add(new JLabel("看看你应该如何称呼你的每一位家人。"));
add(new JLabel("------"));
add(new JLabel("Created by Destiny Zhu, Melory So, Coco Kneer"));
setBackground(Color.white);
}
}