diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/view/RequestView.java b/src/main/java/eu/omp/irap/vespa/epntapclient/view/RequestView.java index 8613f4e..804693e 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/view/RequestView.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/view/RequestView.java @@ -80,22 +80,19 @@ public class RequestView extends JPanel implements ActionListener { this.mainView = mainView; setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); - // TODO: Get max row numberfrom the GUI + // TODO: Get max row number from the GUI params = new HashMap<>(); - //@noformat - params.put("target_name", "Galileo"); - params.put("dataproduct_type", "sp"); - params.put("minTime", new Float(0.0)); - params.put("maxTime", new Float(0.0)); + params.put("target_name", "Galileo"); + params.put("dataproduct_type", "sp"); + params.put("minTime", new Float(0.1)); + params.put("maxTime", new Float(0.2)); params.put("spectral_range_min", new Float(0.0)); params.put("spectral_range_max", new Float(0.0)); - //@format this.add(buildParamPanel(), this); this.add(buildQueryPanel(), this); this.add(buildButtonPanel(), this); - } /** @@ -112,11 +109,11 @@ public class RequestView extends JPanel implements ActionListener { Class paramClass = param.getValue().getClass(); if (paramClass == String.class) { - paramsFields.put(param.getKey(), new JTextField()); + paramsFields.put(param.getKey(), new JTextField(param.getValue().toString())); } else if (paramClass == Float.class) { - paramsFields.put(param.getKey(), new JFormattedTextField(new Float(0))); + paramsFields.put(param.getKey(), new JFormattedTextField(param.getValue())); } else if (paramClass == Integer.class) { - paramsFields.put(param.getKey(), new JFormattedTextField(new Integer(0))); + paramsFields.put(param.getKey(), new JFormattedTextField(param.getValue())); } else { logger.error("Unreconized parameter type " + param.getValue() + " for " + param.getKey() + "."); -- libgit2 0.21.2