From 4b22063c9b9f5c946eee23008b0980175b50c0f3 Mon Sep 17 00:00:00 2001 From: lyzl Date: Wed, 15 Apr 2015 01:35:01 +0800 Subject: [PATCH] fileAdd --- src/com/bistuSMS/SMSMainWindow.java | 14 ++++++++++++-- src/com/bistuSMS/studentList.txt | 0 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 src/com/bistuSMS/studentList.txt 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