/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Cafe_Management_System;
import javax.swing.JOptionPane;
/**
*
* @author PC-14
*/
public class SignUp extends javax.swing.JFrame {
public String emailPattern = "^[a-zA-ZQ-9]+[0]+[a-zA-Z0-9]+[.]+[a-zA-Z0-9]+$";
public String mobileNumberPattern = "^[0-9]*$";
/**
* Creates new form menu
*/
public SignUp() {
initComponents();
btnSave.setEnabled(false);
}
public void clear(){
txtName.setText("");
txtEmail.setText("");
txtMobileNumber.setText("");
txtAddress.setText("");
txtPassword.setText("");
txtSecurityQuestion.setText("");
txtAnswer.setText("");
btnSave.setEnabled(false);
}
private void btnExitActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
int a = JOptionPane.showConfirmDialog(null,"do you really want to closeapplication","select",JOptionPane.YES_NO_OPTION);
}
Tidak ada komentar:
Posting Komentar