DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Coding
  3. Java
  4. JavaFX 2's Ensemble and other Sample Applications

JavaFX 2's Ensemble and other Sample Applications

Dustin Marx user avatar by
Dustin Marx
·
Jan. 18, 12 · Interview
Like (0)
Save
Tweet
Share
17.41K Views

Join the DZone community and get the full member experience.

Join For Free

There are several places within the JavaFX 2 documentation that the sample application Ensemble is referenced. Ensemble is the largest JavaFX sample application provided in the JavaFX 2.0 samples. Acquiring the JavaFX 2 samples, using the JavaFX 2 samples, and learning from the JavaFX 2 samples are the subjects of this post.

The JavaFX Developer Downloads page currently features "JavaFX 2.0.2 General Availability Download" and includes a link for downloading JavaFX Samples [only for "Microsoft Windows (x86 and x64)" as of this writing]. The downloaded file, javafx_samples-2_0_2.zip, is about 18 MB in size. The contents of this ZIP file, when extracted are shown in the next screen snapshot.

Once the samples ZIP has been downloaded and its contents extracted, the Ensemble sample application can be executed. One way to do this is to take advantage of the executable JAR in the main unzipped samples directory as shown in the next screen snapshot (java -jar Ensemble.jar).

The JavaFX 2 Ensemble sample application starts up and appears as shown in the next screen snapshot.

There are numerous items that can be clicked on in the Ensemble application to learn more details about what it is and how it is implemented. For example, clicking on "Adv Candle Stick Chart" opens up the "Custom Candle Stick Chart" as shown in the next screen snapshot.

The above screen snapshot shows Ensemble with the "Sample" tab for this specific example. Clicking on the "Source Code" tab displays the source code for the same sample. As shown in the next screen snapshot, this tab includes a button for copying the JavaFX 2 source code that built that sample.

The combination of the source code with what it produces in the Ensemble sample application can help developers to learn what's available and how to use various parts of JavaFX. Sections currently included in Ensemble include Animation, Charts, Controls, Graphics, Language, Layout, Media, Scene Graph, and Web.

The downloadable JavaFX 2 samples also include Brick Breaker (BrickBreaker.jar) and the next screen snapshot was taken of it in action.

Running the executable JAR SwingInterop.jar demonstrates the "JavaFX 2.0 in Swing" sample application (screen snapshot shown next).

The JavaFX 2 samples ZIP also includes FXML-LoginDemo, which is a simple login sample that includes an FXML file (profile.fxml) in its source. It's shown in the next screen snapshot.

The Ensemble application is by far the largest of the sample applications that are included in the JavaFX 2 samples ZIP file and is the "flagship" sample application. Brick Breaker is relatively large for a single application. All of the samples have value in showing what JavaFX is capable of and in providing source code to demonstrate how to accomplish these very feats with JavaFX.

 

From http://marxsoftware.blogspot.com/2012/01/javafx-2s-ensemble-and-other-sample.html

application JavaFX

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • 11 Observability Tools You Should Know
  • Unlocking the Power of Elasticsearch: A Comprehensive Guide to Complex Search Use Cases
  • Spring Boot vs Eclipse Micro Profile: Resident Set Size (RSS) and Time to First Request (TFR) Comparative
  • Create a REST API in C# Using ChatGPT

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: