| DatePicker dpTo = new DatePicker();
List<Object> args = new LinkedList<Object>();
args.add(dpFrom); args.add(dpTo);
Button btnCalc = new Button("Calculate");
btnCalc.setOnAction(new IncomeCalcEventHandler(results, connect, args));
gp.add(lincome, 0, 0);
gp.add(lFrom, 0, 1);
gp.add(dpFrom, 1, 1);
gp.add(lTo, 0, 2);
|