O que esta errado no código abaixo, não abre a janela
[code]
import javax.swing.JOptionPane;
public class Login extends javax.swing.JPanel {
/** Creates new form Login */
public Login() {
initComponents();
}
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jPasswordField1 = new javax.swing.JPasswordField();
jTextField1 = new javax.swing.JTextField();
setName("Login");
jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jLabel1.setText("jLabel1");
jLabel2.setText("jLabel2");
jButton1.setText("jButton1");
jButton2.setText("jButton2");
jPasswordField1.setText("jPasswordField1");
jTextField1.setText("jTextField1");
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JPanel jPanel1;
private javax.swing.JPasswordField jPasswordField1;
private javax.swing.JTextField jTextField1;
// End of variables declaration
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Login().setVisible(true);
}
});
}
}
Vlw