Clojure « Development « Java Swing Q&A





1. Clojure GUI calculator problem. "-" always returns 0 and "/" always returns 1    stackoverflow.com

I'm well aware this code is horrible. I just made it so I could try out different Swing stuff. This is an interesting problem. This creates 4 buttons one for adding, ...

2. setLookAndFeel and NullPointerException    stackoverflow.com

Has anyone ever tried to change swing's look and feel? This code, taken from an example, simply yields a null pointer exception, and I wonder what might be wrong:

(javax.swing.UIManager/setLookAndFeel 
 ...

3. Extending a Java Swing class in Clojure    stackoverflow.com

I'm trying to extend a Java Swing component in Clojure, i.e. I want to extend a javax.swing.JComponent and add some custom methods implemented in pure Clojure in addition to all the ...

4. Adding fields to a proxied class in Clojure    stackoverflow.com

I'm using "proxy" to extend various Swing classes in a Clojure GUI application, generally with code that looks something like:

(def ^JPanel mypanel 
  (proxy [JPanel] []
    (paintComponent ...

5. Race condition (?) when using Swing    stackoverflow.com

I've moved on from trying to use OpenGL through Penumbra to trying to draw directly on a JPanel using its Graphics context. This would be great, except I'm running into some ...

6. Interoperability between Java and Clojure and creation of GUIs    stackoverflow.com

I've been playing around for some time now with Clojure and I simply love the LISP-syntax, it's really beautiful, expressive, simple and yet extremely effective. I've also been toying around with ...

7. i need the steps to run a code in clojure language contains GUI in java    stackoverflow.com

i have a big problem my doctor want form me to make calculator using new language(clojure)but i don't know anything about it i read some information from www.clojure.org but i still ...

8. Beginner to Swing, need help !    stackoverflow.com

I'd like to create a simple Swing app. I've got very, very, very little experience with Swing, however. I want to create a one window app that refreshes every ...

9. Complex GUI in clojure    stackoverflow.com

I just started using clojure today (however , I have used Java a lot and know of functional paradigms) and I was wondering if it was a good idea to build ...





10. Clojure: Java GUI Problem    stackoverflow.com

I have this little piece of code here.

(ns experiments
  (:import (javax.swing JFrame JLabel)))

(defn create-frame [title text]
  (doto (JFrame. title)
    (.add (JLabel. text))
    (.pack)
 ...

11. Clojure/Swing nullPointerException    stackoverflow.com

I'm trying to write a swing application using a combination of Java and Clojure. I have a Clojure function that calls a function in my JPanel subclass, and I'm getting a ...

12. Map laziness in clojure    stackoverflow.com

I am building a simple swing GUI in Clojure. I am trying to apply a single function to multiple GUI components by using map in the context of a let: (map ...

13. Launch Clojure REPL from java swing    stackoverflow.com

Java Swing REPL How to Launch REPL using java Swing application. As shown in Image. This REPL should be able to run all functions provided by Clojure Build-in libraray and ...