Facebook
From Big Kangaroo, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 133
  1. import java.awt.*;
  2. import java.awt.event.*;
  3. import javax.swing.*;
  4. import javax.swing.border.*;
  5. import java.util.List;
  6. import java.util.ArrayList;
  7.  
  8. public class TelaGrafica extends JFrame implements ActionListener{
  9.     JButton btnInsere, btnExibe;
  10.     JTextField txtNome, txtDia, txtMes, txtAno;
  11.     JLabel entraNome;
  12.     List<Pessoa> lista = new ArrayList<Pessoa>();
  13.    
  14.     public TelaGrafica(){
  15.         btnInsere = new JButton("Insere");
  16.         btnExibe = new JButton("Exibe");
  17.     }
  18.    
  19.     public void actionPerfomeced(ActionEvent e){
  20.         if(e.getSource() == btnInsere){
  21.            
  22.         }
  23.         if(e.getSource() == btnExibe){
  24.            
  25.         }
  26.     }
  27.  
  28.     public static void main(String[] args){
  29.         TelaGrafica tela = new TelaGrafica();
  30.         tela.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  31.         tela.setSize(360, 180);
  32.         tela.setLocation(500, 300);
  33.         tela.setVisible(true);
  34.     }
  35. }
  36.