import javax.swing.*;
import java.awt.*;
import javax.swing.event.*;
import java.awt.event.*;

public class login extends JFrame implements ActionListener
{

	JTextField tf_Login;
	JPasswordField tf_Senha;
	JPanel Painel_Norte, Painel_centro;
	JPanel Painel_leste, Painel_leste1, Painel_leste2 ;
	JButton bt_Entrar,bt_Cancelar;

	public login()
	{
	
		setLayout(new BorderLayout());
		
		getContentPane().setLayout(new GridLayout(2,1));

		getContentPane().add( "North", Painel_Norte = new JPanel(new FlowLayout(FlowLayout.CENTER)));
		Painel_Norte.add(new JLabel("Entrar"));


		getContentPane().add("East",Painel_leste = new JPanel(new GridLayout(2,1)));
		Painel_leste.add(Painel_leste1 = new JPanel(new FlowLayout(FlowLayout.RIGHT)));
		
		Painel_leste1.add(new JLabel("Login"));
 
		Painel_leste2.add(tf_Login = new JTextField(15));
		 
		//Painel_leste.add(new JLabel("Senha"));
		getContentPane().add("Center", Painel_centro = new JPanel());
		//Painel_centro.add(new JLabel());
		getContentPane().add("East", Painel_leste = new JPanel(new FlowLayout(FlowLayout.CENTER)) );
		Painel_leste.add(bt_Entrar 		= new JButton ("Entrar"));
		Painel_leste.add(bt_Cancelar 	= new JButton("Cancelar"));
		
		bt_Entrar.addActionListener(this);
		bt_Cancelar.addActionListener(this);
		pack();
		setVisible(true);
	}
		public static void main (String args [])
		{
			new login();
		}
		public void actionPerformed (ActionEvent e)
		{

			if (e.getSource () == bt_Entrar)
			{

				
			}	

		}


}
