Skip to content

Commit

Permalink
Update SMSAddStudent
Browse files Browse the repository at this point in the history
Add a new property.
  • Loading branch information
ZHRMoe committed Apr 14, 2015
1 parent 4b22063 commit 443c6de
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 11 deletions.
49 changes: 38 additions & 11 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.
Empty file.
2 changes: 2 additions & 0 deletions src/com/bistuSMS/SMSAddStudent.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class SMSAddStudent extends JFrame implements ActionListener {
public JPanel panel6 = new JPanel();
public SMSStudent addStudent;
public boolean addSucceed = false;
public boolean windowClosed = false;

public SMSAddStudent() {
this.setLayout(new GridLayout(6, 1));
Expand Down Expand Up @@ -80,6 +81,7 @@ public void actionPerformed(ActionEvent a) {
if (a.getSource() == addBtn) {
addStudent = new SMSStudent(stuNameTextField.getText(), stuSexTextField.getText(), stuClassTextField.getText(), stuNumberTextField.getText());
addSucceed = true;
windowClosed = true;
this.setVisible(false);
} else if (a.getSource() == backBtn) {
this.setVisible(false);
Expand Down

0 comments on commit 443c6de

Please sign in to comment.