Closedown
This commit is contained in:
@@ -359,9 +359,9 @@ public class TestingList extends Panel {
|
||||
|
||||
public void loadTests() throws FileNotFoundException, IOException{
|
||||
Properties prop = new Properties();
|
||||
String fileName = new java.io.File( "." ).getCanonicalPath()+ "\\home\\script\\tests\\devices\\LS\\.config";
|
||||
this.jTextField1.setText(fileName + "\n");
|
||||
/* File folder = new File(fileName);
|
||||
String fileName = new java.io.File( "." ).getCanonicalPath()+ "\\home\\script\\tests\\devices";
|
||||
this.jTextField1.setText(fileName + "\n");
|
||||
File folder = new File(fileName);
|
||||
|
||||
File[] listOfFiles = folder.listFiles();
|
||||
for (File listOfFile : listOfFiles) {
|
||||
@@ -370,13 +370,13 @@ public class TestingList extends Panel {
|
||||
} else if (listOfFile.isDirectory()) {
|
||||
this.jTextField1.append("Directory " + listOfFile.getName());
|
||||
}
|
||||
}*/
|
||||
InputStream is = new FileInputStream(fileName);
|
||||
}
|
||||
//InputStream is = new FileInputStream(fileName);
|
||||
|
||||
prop.load(is);
|
||||
//prop.load(is);
|
||||
|
||||
addToTable(prop.getProperty("name"), prop.getProperty("description"));
|
||||
this.jTextField1.append(prop.getProperty("name"));
|
||||
//addToTable(prop.getProperty("name"), prop.getProperty("description"));
|
||||
//this.jTextField1.append(prop.getProperty("name"));
|
||||
}
|
||||
|
||||
public void selectFile(){
|
||||
|
||||
Reference in New Issue
Block a user