Created
March 5, 2009 22:32
-
-
Save keithrbennett/74604 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
(defn create-converters-panel | |
"Creates panel containing the labels and text fields." | |
[] | |
(let [ | |
create-an-inner-panel (fn [] (JPanel. (GridLayout. 0 1 5 5))) | |
label-panel (create-an-inner-panel) | |
text-field-panel (create-an-inner-panel) | |
outer-panel (JPanel. (BorderLayout.))] | |
(doto label-panel | |
(.add (JLabel. "Fahrenheit: ")) | |
(.add (JLabel. "Celsius: "))) | |
(create-text-fields) | |
(doto text-field-panel | |
(.add fahr-text-field) | |
(.add cels-text-field)) | |
(doto outer-panel | |
(.add label-panel BorderLayout/WEST) | |
(.add text-field-panel BorderLayout/CENTER)))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment