Label lto = new Label("To");
DatePicker dpTo = new DatePicker();
Button btnsearch = new Button("Search");
List<Object> args = new LinkedList<Object>();
args.add(dpFrom); args.add(dpTo);
btnsearch.setOnAction(new HistorySearchEventHandler(results, connect, args));
gp.add(lhistory, 0, 0);
gp.add(lfrom, 0, 1);
gp.add(dpFrom, 1, 1);
gp.add(lto, 0, 2);