import java.awt.*;
import javax.swing.*;

public class TelaGrafica extends JFrame
{
   JLabel lbNome;
   JTextField teNome;
   JButton btClique;
   
   public TelaGrafica()
   {
      
      super("Cadastro Principal");
      setSize(300, 100);
      
      lbNome = new JLabel("Nome:");
      teNome = new JTextField(20);
      btClique = new JButton("Clique-me");
      
      getContentPane().setLayout(new java.awt.FlowLayout());
      getContentPane().add(lbNome);
      getContentPane().add(teNome);
      getContentPane().add(btClique);
      
      //pack();
      
      
   }
   
   public static void main( String args[])
   {
      TelaGrafica tela = new TelaGrafica();
      tela.show();
   }
}
   