Clojure + JavaFX
Clojure Shell
Permalink
Failed to load latest commit information.
src/upshot started playing with charting stuff. major tech debt incurred. Mar 22, 2012
test/upshot/test
.gitignore initial commit Dec 26, 2011
README.md Trying out midje and starting to write some actual tests. Jan 2, 2012
epl-v10.html initial commit Dec 26, 2011
javafx.env.sh initial commit Dec 26, 2011
project.clj Trying out midje and starting to write some actual tests. Jan 2, 2012
setup.sh initial commit Dec 26, 2011

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.