Skip to content

Commit

Permalink
修改了一下bank.UI的构造方法
Browse files Browse the repository at this point in the history
  • Loading branch information
pluschen-stack committed Aug 11, 2020
1 parent 703ee61 commit 54fa2c9
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 3 deletions.
Binary file modified out/production/ATM/auth/Login$1.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/auth/Login.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void actionPerformed(ActionEvent e) {
if (resultset.next()) {
System.out.println("登录成功");
dispose();
new UI();
new UI(Integer.parseInt(userID));
} else {
System.out.println("登录失败");
}
Expand Down
8 changes: 6 additions & 2 deletions src/bank/UI.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ public class UI extends JFrame implements ActionListener{
User currentUser = new User() ;

public static void main(String[] args) {
new UI();
new UI(1063500879);
}

public UI()
public UI(){

}

public UI(int userID)
{
jb1 = new JButton("查询");
jb2 = new JButton("贷款");
Expand Down

0 comments on commit 54fa2c9

Please sign in to comment.