import javax.swing.*;
import javax.swing.event.*;
import java.awt.*; 
import java.awt.event.*;
public class Tela_Login extends JFrame implements ActionListener  
{
		JPanel Painel_Leste, Painel_Oeste, Painel_Centro, Painel_Norte,Painel_Sul; 
    	JPanel Painel_Centro1, Painel_Centro2, Painel_Leste1, Painel_Leste2, Painel_Leste3;
    	JTextField tf_Usuario;
    	JButton bt_Login, bt_Cancelar;  
    	JPasswordField tf_Senha; 
    	public Tela_Login() 
    	{
    			getContentPane().setLayout(new BorderLayout()); 
       			getContentPane().add("West", Painel_Oeste = new JPanel());
    			Painel_Oeste.add(new JLabel(new ImageIcon("oxnarlogo.png")));
				//
				getContentPane().add("Center", Painel_Centro = new JPanel (new GridLayout(3, 1)));

				Painel_Centro.add(Painel_Centro1 = new JPanel (new FlowLayout(FlowLayout.RIGHT)));
				Painel_Centro1.add(new JLabel("USUÁRIO:"));
     			Painel_Centro.add(Painel_Centro2 = new JPanel (new FlowLayout(FlowLayout.RIGHT)));
				Painel_Centro2.add(new JLabel("SENHA:"));
				//
				getContentPane().add("East", Painel_Leste = new JPanel(new GridLayout(3, 1))); 
  
     		    Painel_Leste.add(Painel_Leste1 = new JPanel (new FlowLayout(FlowLayout.LEFT))); 
    		    Painel_Leste1.add(tf_Usuario = new JTextField(15));	
    		    Painel_Leste.add(Painel_Leste2 = new JPanel (new FlowLayout(FlowLayout.LEFT))); 
    		    Painel_Leste2.add(tf_Senha     = new JPasswordField(15));	
    		    Painel_Leste.add(Painel_Leste3 = new JPanel (new FlowLayout(FlowLayout.CENTER))); 
    		    Painel_Leste3.add(bt_Login = new JButton("Login")); 
    		    Painel_Leste3.add(bt_Cancelar = new JButton("Cancelar"));
    		    	 		
    		    //Configurações de Tela
    		    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    		    pack();
    		    setResizable(false); 
    			setVisible(true);
    	
   	 	}
   	 	public  void  actionPerformed (ActionEvent e)
   	 	{
   	 		
   	 	}
   	 	public static void main (String args [])
   	 	{
   	 			new Tela_Login();
   	 	}
    
}