//********************************************************************
//  Authority.java       Author: Lewis/Loftus
//
//  Demonstrates the use of frames, panels, and labels.
//********************************************************************

import java.awt.*;
import javax.swing.*;

public class Authority
{
   //-----------------------------------------------------------------
   //  Displays some words of wisdom.
   //-----------------------------------------------------------------
   public static void main (String[] args)
   {
      JFrame frame = new JFrame ("Authority");

//      frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);

      JPanel primary = new JPanel();
      primary.setBackground (Color.yellow);
      Dimension d = new Dimension(250, 75);
      primary.setPreferredSize (d);

	
      JLabel label1 = new JLabel ("Question authority,");
      label1.setFont(Font.ITALIC);
      JLabel label2 = new JLabel ("but raise your hand first.");
      JLabel label3 = new JLabel ("Yeni.");

      primary.add (label1);
      primary.add (label2);
      primary.add (label3);

      frame.getContentPane().add(primary);
      frame.pack();
      frame.setVisible(true);
   }
}
