Курсовая работа: Объектно-ориентированное программирование
try
{
FileInputStream is = new
FileInputStream(new
File("C:\\USER\\teacher.txt"));
DataInputStream ids = new DataInputStream(is);
String S2=ids.readUTF();
n=Integer.parseInt(S2);
}
catch(IOException exception){
System.out.println("bgbvhgfj");
}
if(n==0)
{
teacher.setEnabled(false);
teacher1.setEnabled(false);
System.out.println(n);
}
else
{
Check.setEnabled(false);
Exit.setEnabled(false);
System.out.println(n);
}
}
private class ColorAction implements ActionListener
{
public ColorAction(int c)
{