Closedown
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user