Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 71 lines (44 sloc) 2.634 kb
c4fbc21 @daveray notes
authored
1 _Note that current development is on the *develop* branch, not master_
2
426da21 @daveray fix link. :(
authored
3 There's now a [Google Group] (https://groups.google.com/group/seesaw-clj) for discussion and questions.
39c617f @daveray Note google group.
authored
4
6a9c005 @daveray Update readme
authored
5 # Seesaw: Clojure + UI
cdb4045 @daveray readme and various cleanup
authored
6
6a9c005 @daveray Update readme
authored
7 _"killing CamelCase, proxy and reify, one class at a time"_
27ed119 @daveray Bump version to 1.0.0 for a release. More readme stuff. Removed cloju…
authored
8
6a9c005 @daveray Update readme
authored
9 *_Seesaw's experimental and subject to radical change_*
10
11 _*See [the Seesaw Wiki] (https://github.com/daveray/seesaw/wiki) for more detailed docs*_
12
13 Seesaw is a library/DSL for constructing user interfaces in Clojure. It happens to be built on Swing, but please don't hold that against it. It's an experiment to see what I can do to make user interface development funner in Clojure. It's kinda inspired by [Shoes](http://shoesrb.com/), [Stuart Sierra's Swing posts](http://stuartsierra.com/tag/swing), etc. [clojure.contrib.swing-utils](http://richhickey.github.com/clojure-contrib/swing-utils-api.html) is useful, but minimal and still means a lot of "Java-in-Clojure" coding.
cdb4045 @daveray readme and various cleanup
authored
14
e5e53e5 @daveray Moved most stuff over to the wiki. README was getting unwieldy.
authored
15
97c54c9 @daveray Lein getting started...
authored
16 ## TL;DR
17
18 Here's how you use Seesaw with [Leiningen] (https://github.com/technomancy/leiningen)
19
20 Install `lein` as described and then:
21
22 $ lein new hello-seesaw
23 $ cd hello-seesaw
24
25 Add Seesaw to `project.clj`
26
27 (defproject hello-seesaw "1.0.0-SNAPSHOT"
28 :description "FIXME: write"
29 :dependencies [[org.clojure/clojure "1.2.0"]
30 [org.clojure/clojure-contrib "1.2.0"]
fb20cba @daveray Doc updates
authored
31 [seesaw "x.y.z"]])
bfe3669 @daveray Figuring out this whole versioning/release process.
authored
32
fb20cba @daveray Doc updates
authored
33 _Replace the Seesaw version with whatever the latest version tag is. See below!_
97c54c9 @daveray Lein getting started...
authored
34
35 Now edit the generated `src/hello_seesaw/core.clj` file:
36
37 (ns hello-seesaw.core
38 (:use seesaw.core))
39
40 (defn -main [& args]
41 (invoke-later
22e5e67 @daveray update readme
authored
42 (-> (frame :title "Hello",
97c54c9 @daveray Lein getting started...
authored
43 :content "Hello, Seesaw",
22e5e67 @daveray update readme
authored
44 :on-close :exit)
45 pack!
46 show!)))
97c54c9 @daveray Lein getting started...
authored
47
48 Now run it:
49
50 $ lein run -m hello-seesaw.core
51
4b13830 @daveray add a note about bleeding edge
authored
52 *NOTE:* As mentioned above, Seesaw is experimental and changing daily. Thus, there's a good chance that what's on clojars and what's written here are out of sync. Here's how you can run against the bleeding edge of Seesaw:
53
d0962ce @daveray Mention dev branch
authored
54 * Clone Seesaw from github. Fork if you like. *Switch to the "develop" branch.*
4b13830 @daveray add a note about bleeding edge
authored
55 * In your Seesaw checkout, run `lein install` to build it
56 * In your project's `project.clj` file, change the Seesaw version to `X.Y.Z-SNAPSHOT` to match whatever's in Seesaw's `project.clj`.
57 * Run `lein deps`
58 * Move along
97c54c9 @daveray Lein getting started...
authored
59
a159b03 @daveray removed dumb boolean literal tests
authored
60 ## TODO
61
1008435 @daveray Readme updates.
authored
62 * Selectors - select widgets by class, data, etc.
a159b03 @daveray removed dumb boolean literal tests
authored
63 * Styling
1008435 @daveray Readme updates.
authored
64 * Investigate how a framework like [cljque] (https://github.com/stuartsierra/cljque) might fit in with Seesaw
a159b03 @daveray removed dumb boolean literal tests
authored
65
cdb4045 @daveray readme and various cleanup
authored
66 ## License
67
68 Copyright (C) 2011 Dave Ray
69
70 Distributed under the Eclipse Public License, the same as Clojure.
Something went wrong with that request. Please try again.