Java Reference
In-Depth Information
If you think this example could have been accomplished by simply using an
instance of Image , you would be correct. However, the approach presented
here gives you total control and access to the life cycle events generated by
the interaction between your application and the server. You do not get this
level of control when using the Image API directly to retrieve an image.
There's more...
You can get more information on the materials presented here:
F Java Image Tutorial—
F Java IO Tutorial—
F Google Static Map API—
See also
F Chapter 1—Using binding and triggers to update variables
F Chapter 4—Creating a form with JavaFX controls
F Chapter 4—Using the Slider control to input numeric values
F Chapter 5—Loading and displaying images with ImageView
F Accessing remote data with HttpRequest
Posting data to remote servers with
In the preceding recipes, we looked at how to get data from a remote web server. You
may also wish to send data collected from your application to a web server for storage,
for instance. Sending data to web servers is the other half of the rich interactions that are
supported between JavaFX applications and remote servers. In this recipe, we explore how
to post data to a web server.
Getting ready
You should have an understanding of the basic mechanics behind the Web and how
HttpRequest interacts with the server to handle the request/response life cycle. You
should also review materials from Chapter 4 , Components and Skinning, for information
on building data forms. For this recipe, let's assume that we have a web server running
Search WWH ::

Custom Search