import java.awt.*;
import javax.swing.*;

public class Demonstra_BorderLayout extends JFrame
{
		JPanel Painel_Norte, Painel_Oeste, Painel_Leste, Painel_Centro, Painel_Sul;
		public Demonstra_BorderLayout()
		{
				setLayout(new BorderLayout());
				getContentPane().add("North", Painel_Norte = new JPanel());
				Painel_Norte.add(new JLabel("PAINEL \n NORTE"));
				Painel_Norte.setBackground(Color.cyan);
				getContentPane().add("West", Painel_Oeste  = new JPanel());
				Painel_Oeste.setBackground(Color.green);
				Painel_Oeste.add(new JLabel("PAINEL OESTE"));
				getContentPane().add("Center", Painel_Centro  = new JPanel());
				Painel_Centro.setBackground(Color.orange);
				Painel_Centro.add(new JLabel( " '\n\n\n\n\n'PAINEL CENTRAL"+"\n\n\n\n\n"));
				getContentPane().add("East", Painel_Leste   = new JPanel());
				Painel_Leste.setBackground(Color.magenta);	
				Painel_Leste.add(new JLabel("PAINEL LESTE"));	
				getContentPane().add("South", Painel_Sul  = new JPanel());
				Painel_Leste.add(new JLabel("PAINEL SUL"));
				Painel_Sul.setBackground(Color.white);
				Painel_Sul.add(new JLabel("PAINEL SUL"));
				//setSize(500, 600);
				pack();
				setVisible(true);		
		}	
		public static void main(String[] args)
		{
	 			new Demonstra_BorderLayout();
 		}
 }