import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import java.util.List; import java.util.ArrayList; public class TelaGrafica extends JFrame implements ActionListener{ JButton btnInsere, btnExibe; JTextField txtNome, txtDia, txtMes, txtAno; JLabel entraNome; List lista = new ArrayList(); public TelaGrafica(){ btnInsere = new JButton("Insere"); btnExibe = new JButton("Exibe"); } public void actionPerfomeced(ActionEvent e){ if(e.getSource() == btnInsere){ } if(e.getSource() == btnExibe){ } } public static void main(String[] args){ TelaGrafica tela = new TelaGrafica(); tela.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); tela.setSize(360, 180); tela.setLocation(500, 300); tela.setVisible(true); } }