Closedown

This commit is contained in:
boccioli_m
2015-06-24 14:31:47 +02:00
parent f22d549580
commit a5c693367e
6 changed files with 208 additions and 55 deletions

View File

@@ -1,5 +1,8 @@
import java.io.IOException;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
/*
@@ -18,7 +21,8 @@ public class TestMain {
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
try {
// TODO code application logic here
HashMap details = new HashMap();
details.put("deviceName", "Device name");
details.put("deviceDescription", "Device des");
@@ -29,13 +33,21 @@ public class TestMain {
HashMap params = new HashMap();
params = aBuildParametersMap("repeatTimes:3:Repeat times;midPoint:41.0:Middle point;spanFromMidPoint:11.0:Span around middle point");
details.put("parameters", params);
details.put("testDescription", "TestDescription");
details.put("testPath", "C:\\Users\\boccioli_m\\Documents\\pshell\\home\\script\\tests\\tests\\Collimator Tests\\Calibrate\\Calibrate.py");
details.put("testHelp", "<html>this is a <b>help</b><code> directly from config file</code></html>");
// details.put("testHelpUrl", "file:\\\\C:\\Users\\boccioli_m\\Documents\\pshell\\home\\script\\tests\\tests\\Collimator Tests\\Calibrate\\help.html");
// details.put("testHelpUrl", "http://www.google.com");
System.out.print(new java.io.File(".").getCanonicalPath());
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.getContentPane().add(new TestingListDetails(details));
frame.pack();
frame.setVisible(true);
} catch (IOException ex) {
Logger.getLogger(TestMain.class.getName()).log(Level.SEVERE, null, ex);
}
}