Курсовая работа: Объектно-ориентированное программирование
addRadioButton("Нет",2);
addRadioButton("Другойответ",0);
contentPane.add(buttonPanel,BorderLayout.CENTER);
try
{
FileInputStream is4 = new
FileInputStream(new
File("C:\\USER\\Answers.txt"));
ids4 = new DataInputStream(is4);
}
catch(IOException e)
{
System.out.print("Can not read file4444"+e);
}
}
public void addRadioButton(String name, final int size)
{
boolean selected = size==mode;
JRadioButton button = new JRadioButton(name,selected);
group.add(button);
buttonPanel.add(button);
try{
OS=new FileOutputStream (new File("C:\\Student1\\"+S2+".txt"));
ods = new DataOutputStream (OS);
}
catch (IOException e)
{
System.out.print("Can not read file3333"+e);
}