Created
May 12, 2011 02:40
-
-
Save amalloy/967834 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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