Reputation: 2753
The answer is NOT clojurescript. I want to code in Clojure, not ClojureScript.
I like the CSS/DOM model for user interfaces more than I like Java's Graphics2D.
Is there some way / some project that embeds a WebKit of sorts into a Java Application? I would like to be able to code in Java, but also be able to have a GUI which I can control/manipulate via CSS/DOM.
Thanks!
Upvotes: 6
Views: 381
Reputation: 75
You can find a list of more-or-less mature GUI libraries here.
An above-mentioned Seesaw can fit. GUIFTW uses a CSS-like stylesheets for describing the UI and may also meet your needs but it wasn't updated for a year now.
Upvotes: 1
Reputation: 17299
It's not exactly CSS/DOM, but seesaw allows to query Swing widget hierarchies with CSS-like selectors.
Upvotes: 2
Reputation: 106351
The JavaFX 2.0 scene graph is somewhat similar in concept to a DOM, and you can skin it using CSS.
There is a Java API, so you should be able to use this fairly easily from Clojure.
Upvotes: 6