Closedown

This commit is contained in:
boccioli_m
2015-06-09 09:37:17 +02:00
parent 4b21ed8b18
commit 0a416f77d2

View File

@@ -338,17 +338,32 @@ public class TestingList extends Panel {
public void loadTests() throws FileNotFoundException, IOException{
Properties prop = new Properties();
String fileName = "../script/tests/devices/LS/.config";
File file = new File(fileName);
InputStream fc = new FileInputStream(file);
this.jTextField1.setText(fc.toString());
//prop.load(fc);
FileInputStream fc = null;
try{
String fileName = "../script/tests/devices/LS/.config";
File file = new File(fileName);
fc = new FileInputStream(file);
this.jTextField1.setText(fc.toString());
//prop.load(fc);
//addToTable(prop.getProperty("name"), prop.getProperty("description"));
addToTable(("name"), ("description"));
//System.out.println(prop.getProperty("tests"));
//addToTable(prop.getProperty("name"), prop.getProperty("description"));
addToTable(("name"), ("description"));
//System.out.println(prop.getProperty("tests"));
}
catch (IOException e) {
this.jTextField1.setText(e.toString());
e.printStackTrace();
}
finally {
try {
if (fc != null)
fc.close();
} catch (IOException ex) {
ex.printStackTrace();
}
}
}