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— http://java.sun.com/docs/books/tutorial/2d/
images/
F Java IO Tutorial— http://java.sun.com/docs/books/tutorial/essential/
io/
F Google Static Map API— http://code.google.com/apis/maps/
documentation/staticmaps/
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
HttpRequest
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