2016-10-06 14:33 GMT+02:00 Sanel Zukan <[email protected]>:
> Cecil Westerhof <[email protected]> writes:
>> I saw that I already had:
>> (use 'seesaw.core)
>> and called:
>> (invoke-later
>>
>> So I changed your call also into (invoke-later. Is this OK, or is
>> there a reason to do it your way?
>
> That is fine. It is more idiomatic to use 'require' to avoid namespace
> conflicts, as explained on
> http://stackoverflow.com/questions/871997/difference-between-use-and-require.
OK, it was a little work, but I use the require variant now. I have:
(ns quotes.core
(:require
[clj-time.local :as l]
[clojure.java.jdbc :as jdbc]
[clojure.pprint :refer [pprint print-table]]
[clojure.string :refer [lower-case]]
[seesaw.core :as seesaw]
[yesql.core :refer [defquery defqueries]]
))
(import '(javax.swing JButton JCheckBox JDialog JFrame JLabel JOptionPane JPanel
JTextField UIManager plaf.FontUIResource)
'(java.awt Font GridBagLayout GridBagConstraints))
--
Cecil Westerhof
--
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
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.