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 .
Figure 2-3 . The JavaFX DatePicker component in action
 
 
Search WWH ::




Custom Search