ScalaFX Ensemble

ScalaFX Ensemble provides a gallery of over 60 sample applications illustrating how ScalaFX can be used for creation of user interfaces controls, charts, graphics, media and web views.

ScalaFX Ensemble Application - Demo navigation

ScalaFX Ensemble Application - Demo tab ScalaFX Ensemble Application - Demo source

Each example can be executed within the ScalaFX Ensemble application, its source code can be easily seen there too. Example can be saved, from within ScalaFX Ensemble application, as an stand-alone SBT project, with option to convert to Eclipse or IntelliJ IDEA project.

ScalaFX Ensemble can be used by ScalaFX beginners as a set of examples and by more experienced users as a visual reference. Larger size screenshots and information about changes can be found on the ScalaFX Ensemble Home Page.

This project is inspired by JavaFX Ensemble.

Larger size screenshots and information about changes can be found on the ScalaFX Ensemble Home Page

How to run ScalaFX Ensemble

ScalaFX Ensemble can be easily run from the source code, instructions are provided below. In the future, we will also provide an excitable version.

Requirements

To compile and run the project you only need to have:

  • Java 1.8 JDK (u20 or newer version of 1.8).
  • SBT (v.0.13.6 or newer) installed.
  • ScalaFX Ensemble source code

All missing dependencies, including proper version of Scala and ScalaFX, will be downloaded by SBT.

The older version of ScalaFX Ensemble for ScalaFX 2.2 (Java 1.7) is on branch SFX-2.

Compile and Run using SBT

Once you have JDK 1.8 and SBT installed, you can complie and run ScalaFX Ensemble from command prompt using sbt:

  1. Open command prompt
  2. Change directory to where you saved the ScalaFX Ensemble source code (directory containing this README file).
  3. Type sbt run

When run the very first time, SBT will download all needed dependencies including Scala and ScalaFX.

Compile and Run using Intellij IDEA

IntelliJ IDEA with Scala plugin can import project settings from an SBT configuration. Simply select File > Import Project... and point to location of the ScalaFX Ensemble build.sbt.

Generate Eclipse project configuration

Project configurations for Eclipse can be quickly generated using SBT.

  1. Open command prompt
  2. Change directory to where you saved the ScalaFX Ensemble source code (directory containing this README file).
  3. Type sbt eclipse
  4. Import generated project into your Eclipse workspace (you will also need to install Scala-IDE plugin)

Project Status

This project is in a “stable” pre-release state, the main missing future planned for the first release is support for building native executables.

Creating Native Installer

To create a native installer for current OS (Windows, Linux or MacOSX) issue following command:

sbt jdkPackager:packageBin

Mailing list

To post questions or send feedback about ScalaFX Ensemble or ScalaFX in general, please use ScalaFX discussion groups:

scalafx-user - for users of ScalaFX

scalafx-dev - for ScalaFX contributors/committers

License

Copyright © 2012-2014, ScalaFX Project All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the ScalaFX Project nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE SCALAFX PROJECT OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Related Repositories

scalafx-ensemble

scalafx-ensemble

scalafx ensemble ...


Top Contributors

jpsacha prassee abuabdul rajmahendra Alain-Bearez reachsdk hrj