Closedown
This commit is contained in:
@@ -336,7 +336,7 @@ public class TestingList extends Panel {
|
||||
return dateFormat.format(date);
|
||||
}
|
||||
|
||||
public void loadTests() throws FileNotFoundException, IOException{
|
||||
public void loadTestsfail() throws FileNotFoundException, IOException{
|
||||
Properties prop = new Properties();
|
||||
FileInputStream fc = null;
|
||||
try{
|
||||
@@ -345,7 +345,7 @@ public class TestingList extends Panel {
|
||||
|
||||
ClassLoader classLoader = getClass().getClassLoader();
|
||||
//File file = new File(classLoader.getResource("../script/tests/devices/LS/.config").getFile());
|
||||
fc = new FileInputStream(classLoader.getResource("../script/tests/devices/LS/.config").getFile()) {};
|
||||
fc = new FileInputStream(classLoader.getResource("../script/tests/devices/LS/.config").getFile()) ;
|
||||
//fc = new FileInputStream(file);
|
||||
// this.jTextField1.setText(file.toPath().toString());
|
||||
//prop.load(fc);
|
||||
@@ -370,6 +370,16 @@ public class TestingList extends Panel {
|
||||
}
|
||||
}
|
||||
|
||||
public void loadTests() throws FileNotFoundException, IOException{
|
||||
Properties prop = new Properties();
|
||||
ClassLoader classLoader = getClass().getClassLoader();
|
||||
String fileName = classLoader.getResource("../script/tests/devices/LS/.config").getPath();
|
||||
InputStream is = new FileInputStream(fileName);
|
||||
|
||||
prop.load(is);
|
||||
|
||||
addToTable(prop.getProperty("name"), prop.getProperty("description"));
|
||||
}
|
||||
|
||||
public void selectFile(){
|
||||
final JFileChooser fc = new JFileChooser();
|
||||
|
||||
Reference in New Issue
Block a user