Button btngenerate = new Button("Generate report");
btngenerate.setOnAction(new LoadReportEventHandler(connect));
Label llang = new Label("Language statistics");
Label lfrom = new Label("From");
DatePicker dpfrom = new DatePicker();
Label lto = new Label("To");
DatePicker dpto = new DatePicker();
GridPane gp = new GridPane();
gp.setVgap(10);
gp.setHgap(10);
gp.add(lfrom, 0, 0);
gp.add(dpfrom, 1, 0);
gp.add(lto, 0, 1);
gp.add(dpto, 1, 1);
Button btngenerate1 = new Button("Generate report");
btngenerate1.setOnAction(new LanguageStatEventHandler(connect));
Label lcountry = new Label("Country statistics");
Label lfrom1 = new Label("From");
DatePicker dpfrom1 = new DatePicker();
Label lto1 = new Label("To");
DatePicker dpto1 = new DatePicker();
GridPane gp1 = new GridPane();
gp1.setVgap(10);
gp1.setHgap(10);
gp1.add(lfrom1, 0, 0);
gp1.add(dpfrom1, 1, 0);