import java.awt.*;
import javax.swing.*;

public class IntroPanel extends JPanel
{
	//Sets up a JPanel with two labels
	public IntroPanel()
	{
		//add the title to font ArialBlack with BOLD and size 36
		Font titleFont = new Font("ArialBlack", Font.BOLD, 36);

		//add the subtitle font to TimesRoman with ITALIC and size 24
		Font subtitleFont = new Font("TimesRoman", Font.ITALIC, 24);

		//set background color to green
		setBackground(Color.green);

		//put the message in lblTitle
		JLabel lblTitle = new JLabel ("GUI");

		//put the message in lblSubtitle
		JLabel lblSubtitle = new JLabel ("ABC");

		//sets lblTitle to titleFont
		lblTitle.setFont(titleFont);

		//sets lblSubtitle to subtitleFont
		lblSubtitle.setFont(subtitleFont);

		//displays lblTitle
		add(lblTitle);

		//display lblSutitle
		add(lblSubtitle);
	}
}