Before you start
Like other RIA development platforms, Apache Pivot includes a number of features that make building modern GUI applications much easier, including a declarative user interface, data binding, visual effects and transitions, and Web services integration. Pivot applications are built using a combination of Java technology and an XML-based markup language called WTKX. Java Virtual Machine scripting languages are also supported. You can run applications either in a Web browser using the Java plugin or as standalone (optionally offline) desktop applications.
In this tutorial, you will implement a simple but practical Pivot application that allows a user to execute searches against the contents of the iTunes Store. I begin with an introduction to the Pivot platform, followed by an overview of the iTunes search API, and then go on to present the demo application. Along the way I cover how to:
- Create the user interface declaration in WTKX, Pivot's XML-based UI markup language
- Process JSON data using Pivot's built-in support for JSON serialization
The example code in this tutorial is based upon Pivot 1.3 release, which requires the Java 6 (or higher) SDK. You can download Pivot 1.3 as binaries or source; the source distribution contains a BUILD file that describes how to build the project.
Source code for the demo application is distributed with the platform. All code samples are released under the Apache Software License, Version 2.0.
See Resources for links to download the example code, Pivot 1.3, the Java 6 SDK, and the demo application.