Курсовая работа: Объектно-ориентированное программирование учебных систем

readl = new JButton ("Прочитать лекцию");

readl.setPreferredSize(bigsize);

starttest.addActionListener(new ActionListener (){

public void actionPerformed(ActionEvent e) {

try {

KTestWin n = new KTestWin(login, password, f);

bd.write(new Date().getHours() + ":" + new Date ().getMinutes() + " " + new Date ().getDay() + "/" + new Date ().getMonth() + "/" + new Date ().getYear() + "\n");

bd.write(login + " started test\n");

} catch (FileNotFoundException ex) {

Logger.getLogger(KMainWin.class.getName()).log(Level.SEVERE, null, ex);

} catch (IOException ex) {

Logger.getLogger(KMainWin.class.getName()).log(Level.SEVERE, null, ex);

}

}

});

readl.addActionListener(new ActionListener (){

public void actionPerformed(ActionEvent e) {

try {

new KLec(curlec, "Подготовка к тестам", false, login);

bd.write(new Date().getHours() + ":" + new Date().getMinutes() + " " + new Date().getDay() + "/" + new Date().getMonth() + "/" + new Date().getYear() + " ");

bd.write(login + " began read lec\n");

} catch (IOException ex) {

Logger.getLogger(KMainWin.class.getName()).log(Level.SEVERE, null, ex);

}

}

});

button = new JPanel ();

button.setLayout(new FlowLayout());

button.setPreferredSize(new Dimension (210, 125));

К-во Просмотров: 901
Бесплатно скачать Курсовая работа: Объектно-ориентированное программирование учебных систем