我需要做的是提示用户输入用户名和密码 (认证在本地完成),如果验证成功,用户就能够访问程序主体。
有没有快捷的方法来解决这个问题?
public static void main(String[] args){
//String input = JOptionPane.showInputDialog("Enter password to continue: ");
//input2 = Integer.parseInt(input);
// followed by the creation of the main frame
new Cashier3();
Cashier3 frame = new Cashier3();
frame.setTitle("CASHIER 2");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
有没有快捷的方法来解决这个问题?