The essence of a rich Internet application is its ability to display and manipulate data from the Internet, a corporate network, or even on your home network. This chapter looks at the facilities in the JavaFX platform that enable you to access external data sources. We start with the
HttpRequest class, which provides a simple way to read data from and write data to a web server. External data access is inherently slow, so it is essential to ensure that it does not block the application thread that is responsible for updating the user interface. The
HttpRequest class takes care of this for you by transparently doing its job in the background, while delivering its results in the user interface thread.
The second ...