I'm working a Sudoku GUI interface using swing, and I notice something
strange.
I have a JPanel r, with 9 JTextField added to it.
I created a small function to return the text filed of a panel:

(defn components [container]
  (for [i (range (.getComponentCount container))]
    (.getComponent container i)))

When I update one element:
(let [t (first (components r))]
   (.setText t (str 7)))

The text on the panel do update.
When I try to do the same for all the elements:
 (for [t (components r)]
        (.setText t (str 6)))

Nothing happened.
What am I missing here?

Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to