Java Reference
In-Depth Information
flow.getChildren().add(dateLabel);
flow.getChildren().add(datePicker);
primaryStage.setScene(new Scene(flow, 300, 100));
primaryStage.show();
}
/**
* @param args the command-line arguments
*/
public static void main(String[] args) {
launch(args);
}
}
The resulting application looks like that in
Figure 2-3
.