Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Summary

In this chapter, we looked at JavaFX observable collections, the JavaFX worker threading framework, and embedding JavaFX scene in Swing and SWT applications to help you understand the following principles and techniques.

  • JavaFX 2.0 supports two observable collection classes: ObservableList and ObservableMap.
  • ObservableList fires Change events through ListChangeListener. ListChangeListener.Change may contain one or more discrete changes.
  • ObservableMap fires Change events through MapChangeListener. MapChangeListener.Change represents the change of only one key.
  • The FXCollections class contains factory methods to create observable collections, and utility methods to work on them.
  • The main event processing thread in JavaFX applications is the JavaFX application thread. All access to live scenes must be done through the JavaFX application thread.

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint