【发布时间】:2012-02-02 05:08:24
【问题描述】:
我需要做的是提示用户输入用户名和密码(身份验证在本地完成),如果签出,用户就可以访问主程序主体。
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);
有什么快速的方法可以做到这一点吗?
【问题讨论】:
标签: java swing user-interface joptionpane