Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clojure: CSS / DOM like UI for Java

Notes:

The answer is NOT clojurescript. I want to code in Clojure, not ClojureScript.

Context:

I like the CSS/DOM model for user interfaces more than I like Java's Graphics2D.

Question:

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!

like image 590
user1383359 Avatar asked Jun 17 '12 10:06

user1383359


1 Answers

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.

like image 176
mikera Avatar answered Sep 30 '22 08:09

mikera