Курсовая работа: Объектно-ориентированное программирование учебных систем
mark.setPreferredSize(size);
}catch (IOException et) {
//BufferedWriter bw = new BufferedWriter(new FileWriter(Consts.pprofiles + login));
//bw.write("Имя : \nФамилия : \nE-Mail : \nICQ : \nГруппа : ");
//bw.close();
}
TitledBorder tb = new TitledBorder ("Info");
info.setLayout(new BoxLayout (info, BoxLayout.Y_AXIS));
info.add(name);
info.add(surnm);
info.add(email);
info.add(icq);
info.add(group);
info.add(mark);
info.setBorder(tb);
add (info);
this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
this.setResizable(false);
//this.setIconImage(image);
setVisible (true);
}
boolean transfer (String from, String to){
boolean result = false;
try {
FileChannel ic = new FileInputStream(from).getChannel();
FileChannel oc = new FileOutputStream(to).getChannel();
ic.transferTo(0, ic.size(), oc);
ic.close();
oc.close();