package LoginAtendente;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
public class Adotante extends JPanel{
JPanel formulario = new JPanel();
JButton cadastrar = new JButton("Cadastrar"),voltar= new JButton("voltar");
JLabel nome = new JLabel("NOME: "), cpf= new JLabel("CPF: "),rg= new JLabel("RG: "),email= new JLabel("E-MAIL: "),cel= new JLabel("CELULAR: ");
public JTextField n = new JTextField(), cp= new JTextField(),r= new JTextField(),e= new JTextField(),c= new JTextField();
public Adotante() {
setSize(700,700);
formulario.setLayout(null);
formulario.setVisible(true);
configurarPainel();
setLayout(null);
//txt
add(formulario);
}
public void configurarPainel() {
formulario=new JPanel();
formulario.setLayout(null);
formulario.setBackground(Color.RED);
formulario.setSize(600,600);
formulario.setLocation(40,10);
cadastrar.setBounds(550,590,100,30);
nome.setBounds(20, 20, 100, 30);n.setBounds(140, 20, 300, 30);
cpf.setBounds(20, 60, 100, 30);cp.setBounds(140, 60, 300, 30);
rg.setBounds(20, 100, 100, 30);r.setBounds(140, 100, 300, 30);
email.setBounds(20, 140, 100, 30);e.setBounds(140, 140, 300, 30);
cel.setBounds(20, 180, 100, 30);c.setBounds(140, 180, 300, 30);
voltar.setBounds(500, 540, 100, 30);
formulario.add(cadastrar);formulario.add(cpf);formulario.add(email);formulario.add(nome);formulario.add(cel);
formulario.add(rg);formulario.add(voltar);formulario.add(cp);formulario.add(e);formulario.add(n);formulario.add(c);formulario.add(r);
}
public void paintComponent(Graphics g){
super.paintComponent(g);
g.drawImage(new ImageIcon("src/form1.png").getImage(), 0, 0, getWidth(), getHeight(), formulario);
}
}