import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.event.*;



public class Imprime_None extends JFrame implements ActionListener
{

	JPanel Painel1, Painel2;
	JLabel lbl_Nome = new JLabel("                                ");
	JButton bt_Sair, bt_Limpar, bt_Imprimir;
    public Imprime_None() 
    {
    	getContentPane().setLayout(new GridLayout(2, 1));
       	getContentPane().add(Painel1 = new JPanel(new FlowLayout(FlowLayout.CENTER)));
    	Painel1.add(lbl_Nome);
    	
    	getContentPane().add(Painel2 = new JPanel(new FlowLayout(FlowLayout.CENTER)));
    	Painel2.add(bt_Imprimir = new JButton ("Imprimir Nome"));
    	Painel2.add(bt_Limpar = new JButton ("Limpar Campos"));
    	Painel2.add(bt_Sair = new JButton ("Sair do Sistema"));
    	pack();
    	setVisible(true);
    	bt_Imprimir.addActionListener(this);
    	bt_Limpar.addActionListener(this);
    	bt_Sair.addActionListener(this);   	
    	
    		
    }
    public static void main(String args [])
    {
    	new Imprime_None();
    }
    public void actionPerformed(ActionEvent e)
    {
    	if(e.getSource()==bt_Imprimir)
    		{lbl_Nome.setText("ANDRE APARECIDO DA SILVA");}
    	if(e.getSource()==bt_Limpar)
    		{lbl_Nome.setText("  ");}
    	if(e.getSource()==bt_Sair)
    		{System.exit(0);}
     }
    
}