public void actionPerformed(ActionEvent e){
                int selectedRow = table.getSelectedRow();//ѡе
                if(selectedRow!= -1)   //Ƿѡ
                {
                    //޸ֵָ

                    tableModel.setValueAt(dateText.getText(), selectedRow, 1);
                    tableModel.setValueAt(sortText.getText(), selectedRow, 2);
                    tableModel.setValueAt(captionText.getText(), selectedRow, 3);
                    tableModel.setValueAt(commentsText.getText(), selectedRow, 4);
                }

                notepadBLL.update(IDLabel.getText(),dateText.getText(),sortText.getText(),captionText.getText(),commentsText.getText());
                JOptionPane.showMessageDialog(null,"޸ĳɹ");
            }