user1383359
user1383359

Reputation: 2753

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!

Upvotes: 6

Views: 381

Answers (3)

Alexander Yakushev
Alexander Yakushev

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

kotarak
kotarak

Reputation: 17299

It's not exactly CSS/DOM, but seesaw allows to query Swing widget hierarchies with CSS-like selectors.

Upvotes: 2

mikera
mikera

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

Related Questions