diff --git a/src/com/bistuSMS/SMSMainWindow.java b/src/com/bistuSMS/SMSMainWindow.java index a038b93..8152eeb 100644 --- a/src/com/bistuSMS/SMSMainWindow.java +++ b/src/com/bistuSMS/SMSMainWindow.java @@ -14,14 +14,18 @@ * Created by Xu Bo on 2015/4/13. */ -public class SMSMainWindow extends JFrame { +public class SMSMainWindow extends JFrame{ + + JButton returnButton = new JButton("注销"); JButton removeButton = new JButton("删除"); + JButton addbutton = new JButton("add"); + Font font = new Font("Default",Font.PLAIN,20); Font titleFont = new Font("Default",Font.PLAIN,25); + TitledBorder border1 = new TitledBorder("学生列表"); JTable studentListTable = new JTable(); - JLabel titleLabel; JPanel panel1 = new JPanel(); @@ -131,6 +135,12 @@ public void actionPerformed(ActionEvent e) { setVisible(false); } }); + addbutton.addActionListener(new ActionListener() { + @Override + public void actionPerformed(ActionEvent e) { +// new SMSAddStudent(); + } + }); add(panel3); this.setVisible(true); diff --git a/src/com/bistuSMS/studentList.txt b/src/com/bistuSMS/studentList.txt new file mode 100644 index 0000000..e69de29