galera o cerco ta fechando pra mim, tenho que entregar um progeto proxima semana e to sem saber fazer a interface. quem puder me ajudar pondo os codigos eu agradeço, pois ainda to arrumando os bugs do cogido!
package Projeto;
import java.awt.event.*;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.*;
public class InterfaceCadastro extends JFrame{
private JPanel panel;
private JLabel nome;
private JLabel cpf;
private JLabel rua;
private JLabel cidade;
private JLabel bairro;
private JLabel estado;
private JLabel cp;
private JLabel telResidencial;
private JLabel telCelular;
private JLabel fax;
private JLabel dataNasc;
public InterfaceCadastro() {
super("*** Loc & Ande *** Cadastro");
panel = new JPanel();
nome = new JLabel("Nome");
cpf = new JLabel("CPF");
rua = new JLabel("Rua");
cidade = new JLabel("Cidade");
bairro = new JLabel("Bairro");
estado = new JLabel("Estado");
cp = new JLabel("Cp");
telResidencial = new JLabel("Residencial");
telCelular = new JLabel("Celular");
fax = new JLabel("Fax");
dataNasc = new JLabel("Data de Nascimento");
panel.add(nome);
panel.add(cpf);
panel.add(rua);
panel.add(cidade);
panel.add(bairro);
panel.add(estado);
panel.add(cp);
panel.add(telResidencial);
panel.add(telCelular);
panel.add(fax);
panel.add(dataNasc);
getContentPane().add(panel, BorderLayout.CENTER);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
pack();
setVisible(true);
}
public static void main(String [] args) {
new InterfaceCadastro();
}
}
esse eh o cadastro, e os campos tem que ficar um em baixo do outro e tem que por os JTextField que eu nao sei como o por do lado de cada campo.
ajudem ai!!!! valeu
