Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Clojure + JavaFX

branch: develop
README.md

Upshot

WARNING: THIS IS NOT MERELY EXPERIMENTAL. IT IS REALLY MOST SINCERELY EXPERIMENTAL!

A Seesaw style Clojure API for JavaFX.

Usage

JavaFX isn't in Maven and, as a special bonus, has native deps. So, you'll need to unpack the JavaFX distribution somewhere and then do some setup whenever you play with Upshot:

export JAVAFX_HOME="/Users/dave/Apps/javafx-sdk2.1.0-beta"
source javafx.env.sh

# do this only once. It installs JavaFX in your local maven repo.
./setup.sh
lein deps

# Now run the example (test/upshot/test/examples/example.clj)
lein run -m upshot.test.examples.example

Theading Note: JavaFX is much pickier than Swing about code executing correctly on the JavaFX thread. So, most interactions at the REPL should be wrapped in the (upshot.core/run-now) macro.

Running the Tests

I'm giving Midje a try:

lein midje

License

Copyright (C) 2012 Dave Ray

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.