public void actionPerformed(ActionEvent evt) {
JFrame novo = new JFrame("Cadastro");
novo.setVisible(true);
novo.setSize(450,350);
novo.setLocationRelativeTo(null);
novo.setLayout(new FlowLayout());
JRadioButton radio1 = new JRadioButton("São Paulo");
JRadioButton radio2 = new JRadioButton("Santos");
JRadioButton radio3 = new JRadioButton("Rio de Janeiro");
ButtonGroup tipo = new ButtonGroup();
tipo.add(radio1);
tipo.add(radio2);
tipo.add(radio3);
novo.add(radio1);
novo.add(radio2);
novo.add(radio3);
JLabel obs = new JLabel("Nome:");
JTextArea name = new JTextArea("",2,30);
novo.add(obs);
novo.add(name);
JLabel aux = new JLabel("Email:");
JTextArea na = new JTextArea("",2,30);
novo.add(aux);
novo.add(na);
}
me ajudem…sai tudo seguido …quero que uma label sai em baixo da outra…seguidas sa area, podem me ajudar ?