public void run()
{
String file_name;
Network_data deviation=null;
Network_data data;
file_name=data_file.getName();
try
{
label.setText("Open file with name '"+file_name+"'");
label.repaint();
data = new Network_data(data_file,default_data_window_size);
//System.out.println(data.toString());
}
catch (IOException ex)
{
System.out.println("Read data from "+file_name+" failed");
System.out.println(ex.getMessage());
label.setText("File with name '"+file_name+"' can't be open!");
label.repaint();
return;
}
//System.out.println(data.toString());
label.setText("File with name '"+file_name+"' opened");
label.repaint();
try
{
if(deviation_file!=null)
{
file_name=deviation_file.getName();
deviation=new Network_data(deviation_file,default_data_window_size);
}
//System.out.println(data.toString());
}
catch (IOException ex)