Hi all i am new with Clojure and i just experiment with swing.
I have Java class witch generate GUI form
public class QuennChesGUI extends javax.swing.JFrame{
public javax.swing.JTextField jTextField1;
public javax.swing.JToggleButton jToggleButton1;
public QuennChesGUI() {
initComponents();
}
bla
*
*
*
}
and i have clj. file
(ns main.start-fn
(:gen-class
:extends main.QuennChesGUI
) ;(:require )
;(:use )
;(:import )
)
(import 'main.QuennChesGUI)
(import 'javax.swing.JFrame)
(let [frame (new QuennChesGUI)]
(action listener ????)
(doto frame
(.setVisible true)
))
(defn do_somethin_and_set_filed) ????
when i enter (use 'main.start-fn)
it show me the swing form but now i have problem with acccessing
button and JTextField from clojure.
My idea now is to create acction on button witch call clojure function
and calculate somethig and then set JTextField from clojure.
I do not want to create whole gui in clojure,
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en