Академический Документы
Профессиональный Документы
Культура Документы
CAMPUS CAMPECHE
Materia: SEGURIDAD EN LA INFORMACIN Grupo: 8 AME (1504) 8 CUATRIMESTRE
EXAMEN PRIMER PARCIAL
Catedrtico: MARCELO GPE. SEGOVIA MAYO Fecha: 22/03/2017
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
comprouebamil frame = new
comprouebamil();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
UNIVERSIDAD VALLE DEL GRIJALVA
CAMPUS CAMPECHE
* Create the frame.
*/
public comprouebamil() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 450, 300);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
}
}
if (arroba == true) {
JOptionPane.showMessageDialog(null,
"correo correcto");
}
else {
JOptionPane.showMessageDialog(null,
"correo incorrecto");
}
}
});
btnComprobar.setBounds(155, 112, 97, 25);
contentPane.add(btnComprobar);
}
UNIVERSIDAD VALLE DEL GRIJALVA
CAMPUS CAMPECHE
}