Skip to content

Instantly share code, notes, and snippets.

@amalloy
Created May 12, 2011 02:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amalloy/967834 to your computer and use it in GitHub Desktop.
Save amalloy/967834 to your computer and use it in GitHub Desktop.
(let [[b1 b2 b3 :as buttons]
(for [[title file] [["Disable middle button" "right.gif"]
["Middle button" "middle.gif"]
["Enable middle button" "left.gif"]]]
(JButton. title (create-image-igon file)))
panel (doto (JPanel.)
(.setOpaque true))
(doseq [b buttons]
(.add panel b))])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment